mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 05:51:56 +08:00
33 lines
662 B
Nginx Configuration File
33 lines
662 B
Nginx Configuration File
worker_processes 1;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include mime.types;
|
|
sendfile on;
|
|
keepalive_timeout 65;
|
|
|
|
server {
|
|
listen 8080;
|
|
server_name localhost;
|
|
default_type 'text/html';
|
|
charset utf-8;
|
|
|
|
location / {
|
|
root /dashboard;
|
|
}
|
|
|
|
location /api {
|
|
rewrite ^/api(.*)$ $1 break;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_pass http://localhost:9090;
|
|
}
|
|
|
|
error_page 404 /404.html;
|
|
error_page 500 502 503 504 /50x.html;
|
|
}
|
|
}
|