From 72e14dbeb4ad19adc446927921c4fcf13e07642c Mon Sep 17 00:00:00 2001 From: 0xJacky Date: Sat, 9 Oct 2021 13:47:49 +0800 Subject: [PATCH] bug fix --- README.md | 9 +++++++-- server/tool/cert.go | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ca03ace2..f5ecc738 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,12 @@ server { root /path/to/nginx-ui/frontend/dist; - 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; @@ -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/; } } ``` diff --git a/server/tool/cert.go b/server/tool/cert.go index c49137e3..52a38dfb 100644 --- a/server/tool/cert.go +++ b/server/tool/cert.go @@ -109,5 +109,7 @@ func IssueCert(domain string) error { return err } + ReloadNginx() + return nil }