mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-02-23 22:04:32 +08:00
25 lines
796 B
Text
25 lines
796 B
Text
|
server {
|
||
|
server_name YOUR_DOMAIN;
|
||
|
listen 80;
|
||
|
# HTTPS
|
||
|
#listen 443 ssl http2;
|
||
|
#ssl_certificate ssl.crt;
|
||
|
#ssl_certificate_key ssl.key;
|
||
|
# PROXY
|
||
|
proxy_redirect http:// $scheme://;
|
||
|
proxy_set_header Host $host;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
location / {
|
||
|
proxy_pass http://localhost:18080;
|
||
|
etag on;
|
||
|
}
|
||
|
location /assets {
|
||
|
proxy_pass http://localhost:18080/assets;
|
||
|
expires 90d;
|
||
|
}
|
||
|
#location /h5-app {
|
||
|
# alias /data/rebuild/h5-app;
|
||
|
# etag on;
|
||
|
#}
|
||
|
}
|