|
@@ -1,66 +0,0 @@
|
|
|
-server {
|
|
|
- listen 80;
|
|
|
- listen [::]:80;
|
|
|
-
|
|
|
- server_name dhcp.testdocker.flowdat.net;
|
|
|
- return 301 https://dhcp.testdocker.flowdat.net$request_uri;
|
|
|
-}
|
|
|
-
|
|
|
-map $http_upgrade $connection_upgrade {
|
|
|
- default upgrade;
|
|
|
- '' close;
|
|
|
-}
|
|
|
-
|
|
|
-server {
|
|
|
- listen 443 ssl;
|
|
|
- listen [::]:443;
|
|
|
-
|
|
|
- server_name dhcp.testdocker.flowdat.net;
|
|
|
-
|
|
|
- ssl_certificate /etc/nginx/certs/fullchain.pem;
|
|
|
- ssl_certificate_key /etc/nginx/certs/privkey.pem;
|
|
|
-
|
|
|
- root /opt/dhcp/web;
|
|
|
-
|
|
|
- location /bundles/ {
|
|
|
- root /opt/dhcp/web;
|
|
|
- }
|
|
|
-
|
|
|
- location / {
|
|
|
- try_files $uri /app.php$is_args$args;
|
|
|
- }
|
|
|
-
|
|
|
- #
|
|
|
- location ~ ^/(app_dev|config)\.php(/|$) {
|
|
|
- fastcgi_pass unix:/tmp/dhcp/dhcp.sock;
|
|
|
- fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
|
|
- include fastcgi_params;
|
|
|
- fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
|
- fastcgi_param DOCUMENT_ROOT $realpath_root;
|
|
|
- fastcgi_ignore_client_abort on;
|
|
|
- fastcgi_param REMOTE_ADDR $http_x_real_ip;
|
|
|
- }
|
|
|
-
|
|
|
- # PROD
|
|
|
- location ~ ^/app\.php(/|$) {
|
|
|
- fastcgi_pass unix:/tmp/dhcp/dhcp.sock;
|
|
|
- fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
|
|
- include fastcgi_params;
|
|
|
- fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
|
- fastcgi_param DOCUMENT_ROOT $realpath_root;
|
|
|
- fastcgi_ignore_client_abort on;
|
|
|
- fastcgi_param REMOTE_ADDR $http_x_real_ip;
|
|
|
- internal;
|
|
|
- }
|
|
|
-
|
|
|
- location ~ \.php$ {
|
|
|
- return 404;
|
|
|
- }
|
|
|
-
|
|
|
- location /ws {
|
|
|
- proxy_pass http://amqp:15674/ws;
|
|
|
- proxy_http_version 1.1;
|
|
|
- proxy_set_header Upgrade $http_upgrade;
|
|
|
- proxy_set_header Connection $connection_upgrade;
|
|
|
- }
|
|
|
-}
|