comment-server/config/nginx.conf

28 lines
546 B
Nginx Configuration File
Raw Normal View History

2019-05-21 21:13:08 +02:00
worker_processes 1;
daemon off;
error_log /dev/stdout warn;
events {
worker_connections 1024;
accept_mutex off;
}
http {
default_type application/json;
access_log off;
server {
listen 5921;
location /api {
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_pass http://localhost:2903;
}
}
}