mirror of
https://github.com/aljazceru/addons.git
synced 2026-02-08 06:34:20 +01:00
62 lines
1.6 KiB
Nginx Configuration File
62 lines
1.6 KiB
Nginx Configuration File
worker_processes 1;
|
|
pid /var/run/nginx.pid;
|
|
error_log /dev/stdout info;
|
|
daemon off;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
sendfile on;
|
|
keepalive_timeout 65;
|
|
proxy_read_timeout 1200;
|
|
gzip on;
|
|
gzip_disable "msie6";
|
|
resolver 127.0.0.11;
|
|
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
# Ingress
|
|
server {
|
|
listen 8099 default_server;
|
|
|
|
allow 172.30.32.2;
|
|
deny all;
|
|
|
|
server_name _;
|
|
access_log /dev/stdout combined;
|
|
|
|
client_max_body_size 4G;
|
|
keepalive_timeout 5;
|
|
|
|
root /dev/null;
|
|
|
|
# The websocket isn't used yet. This is a stub for the future.
|
|
location /api/websocket {
|
|
proxy_pass http://localhost:8081;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
}
|
|
|
|
location / {
|
|
proxy_redirect off;
|
|
proxy_pass http://localhost:40850;
|
|
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-NginX-Proxy true;
|
|
}
|
|
}
|
|
} |