18 lines
572 B
Plaintext
18 lines
572 B
Plaintext
|
|
|
||
|
|
server {
|
||
|
|
listen 80; # 监听 80 端口
|
||
|
|
server_name nexus.deeplink.media; # 运维机 的公网 IP
|
||
|
|
access_log /data/tengine/logs/nexus_access.log;
|
||
|
|
error_log /data/tengine/logs/nexus_error.log;
|
||
|
|
location / {
|
||
|
|
proxy_pass http://127.0.0.1:8081; # 反向代理到本地电脑的sit的8070
|
||
|
|
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;
|
||
|
|
|
||
|
|
client_max_body_size 300M;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|