diff options
author | marudor <marudor@marudor.de> | 2018-02-08 22:56:44 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-08-19 16:44:33 +0200 |
commit | 2391952437b2e48d5e6cd2eb7b647f3eb3c3bf56 (patch) | |
tree | 36f1ac1ebbbbdd97f385f995698bed3b624b799e /nginx.conf | |
parent | d243090fea52b68a5ad5d55a5927ca95b5bf8bb1 (diff) |
initial Docker stuff
Diffstat (limited to 'nginx.conf')
-rw-r--r-- | nginx.conf | 34 |
1 files changed, 34 insertions, 0 deletions
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; + } + } +} |