0xJacky 3 年之前
父节点
当前提交
72e14dbeb4
共有 2 个文件被更改,包括 9 次插入2 次删除
  1. 7 2
      README.md
  2. 2 0
      server/tool/cert.go

+ 7 - 2
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/;
     }
 }
 ```

+ 2 - 0
server/tool/cert.go

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