Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
57cb3ffd74 |
+13
@@ -146,6 +146,19 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
# observer HTTP(仅 HTTP)
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name observer.redpowerfuture.com;
|
||||||
|
location / {
|
||||||
|
proxy_pass http://__API_HOST__:18080;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
}
|
||||||
# ==================== 主站 HTTPS(静态文件 + API 反向代理) ====================
|
# ==================== 主站 HTTPS(静态文件 + API 反向代理) ====================
|
||||||
server {
|
server {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
|||||||
Reference in New Issue
Block a user