diff options
Diffstat (limited to 'docker/nginx/default.conf.template')
| -rw-r--r-- | docker/nginx/default.conf.template | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/docker/nginx/default.conf.template b/docker/nginx/default.conf.template index de2dc82..31485ea 100644 --- a/docker/nginx/default.conf.template +++ b/docker/nginx/default.conf.template @@ -1,5 +1,5 @@ server { - listen 0.0.0.0:80 ssl; + listen 0.0.0.0:443 ssl; ssl_certificate /etc/nginx/certs/self-signed.crt; ssl_certificate_key /etc/nginx/certs/self-signed.key; @@ -20,3 +20,23 @@ server { fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; } } + +server { + listen 0.0.0.0:80; + + root /var/www/html/public; + index index.php; + + location / { + try_files $uri $uri/ /index.php?$args; + } + + location ~ \.php$ { + include fastcgi_params; + + fastcgi_pass php:9000; + + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; + } +} |
