diff options
author | Matthew Lemon <y@yulqen.org> | 2024-04-29 16:17:46 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-04-29 16:17:46 +0100 |
commit | 63246f793907b42867bac93d304231d091b428ba (patch) | |
tree | 701cf3e626655033025f0f279ea59f0d92b90adc /nginx-conf | |
parent | 2f8290c497bc9f1198780c76e224c21acf79eb35 (diff) |
Adding the template app nginx config
Diffstat (limited to '')
-rw-r--r-- | nginx-conf/logging.conf | 6 | ||||
-rw-r--r-- | nginx-conf/nginx.conf | 22 |
2 files changed, 28 insertions, 0 deletions
diff --git a/nginx-conf/logging.conf b/nginx-conf/logging.conf new file mode 100644 index 0000000..d0e3d09 --- /dev/null +++ b/nginx-conf/logging.conf @@ -0,0 +1,6 @@ +log_format ddsoc '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + +access_log /dev/stdout ddsoc; +error_log /dev/stderr info; diff --git a/nginx-conf/nginx.conf b/nginx-conf/nginx.conf new file mode 100644 index 0000000..f345d2e --- /dev/null +++ b/nginx-conf/nginx.conf @@ -0,0 +1,22 @@ +user nginx; +worker_processes 1; + +pid /tmp/nginx.pid; +events { + worker_connections 1024; +} +http { + client_body_temp_path /tmp/client_temp; + proxy_temp_path /tmp/proxy_temp_path; + fastcgi_temp_path /tmp/fastcgi_temp; + uwsgi_temp_path /tmp/uwsgi_temp; + scgi_temp_path /tmp/scgi_temp; + server { + listen 80; + location / { + proxy_pass http://django-app-service:8080; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + } + } +}
\ No newline at end of file |