nginx-ui/nginx.conf
2021-08-31 12:13:12 +08:00

24 lines
696 B
Nginx Configuration File

server {
listen 80;
server_name localhost; # your domain here
client_max_body_size 128M; # maximum upload size
root /app/html;
index index.html;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
index index.html;
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_set_header Host $host;
proxy_set_header X-Real_IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_pass http://127.0.0.1:9100/;
}
}