first commit
This commit is contained in:
22
tools.gogongxt.com
Normal file
22
tools.gogongxt.com
Normal file
@@ -0,0 +1,22 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name tools.gogongxt.com;
|
||||
|
||||
root /home/gogongxt/tools;
|
||||
index index.html;
|
||||
|
||||
# 静态文件直接返回
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# Python API 反向代理
|
||||
location /api/ {
|
||||
proxy_pass http://127.0.0.1:8000;
|
||||
}
|
||||
|
||||
listen 443 ssl;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/tools.gogongxt.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/tools.gogongxt.com/privkey.pem;
|
||||
}
|
||||
Reference in New Issue
Block a user