Skip to content

Instantly share code, notes, and snippets.

@BielosX
Created September 16, 2022 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BielosX/1c53804c777592ea253176365aa6658e to your computer and use it in GitHub Desktop.
Save BielosX/1c53804c777592ea253176365aa6658e to your computer and use it in GitHub Desktop.
user proxy proxy;
error_log /home/proxy/logs/error.log warn;
pid /run/nginx.pid;
worker_processes auto;
worker_rlimit_nofile 32788;
events {
worker_connections 1024;
}
http {
server {
listen 8080;
location / {
root /home/proxy/web;
index index.html;
try_files $uri $uri/ @backend;
}
location @backend {
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment