aboutsummaryrefslogtreecommitdiffstats
path: root/docker/nginx/default.conf
diff options
context:
space:
mode:
Diffstat (limited to 'docker/nginx/default.conf')
-rw-r--r--docker/nginx/default.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf
new file mode 100644
index 0000000..8a1bcc6
--- /dev/null
+++ b/docker/nginx/default.conf
@@ -0,0 +1,21 @@
+server {
+ listen 80;
+ server_name localhost;
+ root /var/www/html/public;
+ index index.php;
+
+ location / {
+ try_files $uri $uri/ /index.php?$query_string;
+ }
+
+ location ~ \.php$ {
+ fastcgi_pass php:9000;
+ fastcgi_index index.php;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ include fastcgi_params;
+ }
+
+ location ~ /\. {
+ deny all;
+ }
+}