From 2391952437b2e48d5e6cd2eb7b647f3eb3c3bf56 Mon Sep 17 00:00:00 2001 From: marudor Date: Thu, 8 Feb 2018 22:56:44 +0100 Subject: initial Docker stuff --- nginx.conf | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 nginx.conf (limited to 'nginx.conf') diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 00000000..b8e69b00 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,34 @@ +error_log stderr; +events { + worker_connections 1024; +} +http { + client_body_temp_path /tmp/client_body_temp; + fastcgi_temp_path /tmp/fastcgi_temp; + proxy_temp_path /tmp/proxy_temp; + scgi_temp_path /tmp/scgi_temp; + uwsgi_temp_path /tmp/uwsgi_temp; + + server { + include mime.types; + access_log off; + listen [::]:80 ipv6only=off; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + index index.php; + root /var/www/html; + + location / { + try_files $uri $uri/index.php; + } + + location ~ \.php$ { + fastcgi_pass engelsystem:9000; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } + } +} -- cgit v1.2.3-54-g00ecf