CoolFace
Apppublic

NorwayX/docker

sourceHugging Faceotherupdated 4mo agoView on Hugging Face
0likes
nginx.conf54 linesDownload Raw Back to root
1worker_processes 1;2pid /tmp/nginx/nginx.pid;3error_log /tmp/nginx/error.log warn;4 5events {6    worker_connections 1024;7}8 9http {10    include /etc/nginx/mime.types;11    default_type application/octet-stream;12    access_log /tmp/nginx/access.log;13    client_body_temp_path /tmp/nginx/client_body_temp;14    proxy_temp_path /tmp/nginx/proxy_temp;15    fastcgi_temp_path /tmp/nginx/fastcgi_temp;16    uwsgi_temp_path /tmp/nginx/uwsgi_temp;17    scgi_temp_path /tmp/nginx/scgi_temp;18    sendfile on;19    keepalive_timeout 65;20 21    map $http_upgrade $connection_upgrade {22        default upgrade;23        '' close;24    }25 26    server {27        listen 7860;28        server_name _;29        client_max_body_size 0;30 31        location /vless {32            proxy_redirect off;33            proxy_pass http://127.0.0.1:10000;34            proxy_http_version 1.1;35            proxy_set_header Upgrade $http_upgrade;36            proxy_set_header Connection $connection_upgrade;37            proxy_set_header Host $host;38            proxy_read_timeout 86400;39        }40 41        location / {42            proxy_pass http://127.0.0.1:7861;43            proxy_http_version 1.1;44            proxy_set_header Host $host;45            proxy_set_header X-Real-IP $remote_addr;46            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;47            proxy_set_header X-Forwarded-Proto $scheme;48            proxy_set_header Upgrade $http_upgrade;49            proxy_set_header Connection $connection_upgrade;50            proxy_read_timeout 86400;51        }52    }53}54