summaryrefslogtreecommitdiff
path: root/docker/nginx/default.conf.template
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-09-24 13:40:25 +0200
committerDaniel Weipert <code@drogueronin.de>2023-09-24 13:40:25 +0200
commitfa00b957378a393f8edbfc98ef111d35d18ecb09 (patch)
tree654e7dc5414f7f2795dbe996d3e1570793a5b1b8 /docker/nginx/default.conf.template
initial commit
Diffstat (limited to 'docker/nginx/default.conf.template')
-rw-r--r--docker/nginx/default.conf.template19
1 files changed, 19 insertions, 0 deletions
diff --git a/docker/nginx/default.conf.template b/docker/nginx/default.conf.template
new file mode 100644
index 0000000..e8b82cd
--- /dev/null
+++ b/docker/nginx/default.conf.template
@@ -0,0 +1,19 @@
+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 app:9000;
+
+ fastcgi_index index.php;
+ fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
+ }
+}