mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-11-14 00:07:00 +01:00
27 lines
809 B
Plaintext
27 lines
809 B
Plaintext
worker_processes 1;
|
|
pid /tmp/nginx.pid;
|
|
error_log /dev/stderr warn;
|
|
events { worker_connections 256; }
|
|
http {
|
|
log_format shadow '$remote_addr "$request_method $uri" $status $body_bytes_sent';
|
|
access_log /dev/stdout shadow;
|
|
client_body_temp_path /tmp/client_body;
|
|
proxy_temp_path /tmp/proxy;
|
|
fastcgi_temp_path /tmp/fastcgi;
|
|
uwsgi_temp_path /tmp/uwsgi;
|
|
scgi_temp_path /tmp/scgi;
|
|
server {
|
|
listen 8080;
|
|
server_name _;
|
|
client_max_body_size 100m;
|
|
location / {
|
|
proxy_pass http://app:5000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_read_timeout 60s;
|
|
}
|
|
}
|
|
}
|