This commit is contained in:
0xJacky 2021-10-09 13:47:49 +08:00
parent 84c6a731c9
commit 72e14dbeb4
2 changed files with 9 additions and 2 deletions

View file

@ -72,7 +72,12 @@ server {
root /path/to/nginx-ui/frontend/dist;
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;
@ -81,7 +86,7 @@ server {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_pass http://127.0.0.1:9000/;
proxy_pass http://127.0.0.1:9100/;
}
}
```

View file

@ -109,5 +109,7 @@ func IssueCert(domain string) error {
return err
}
ReloadNginx()
return nil
}