rebuild/.deploy/nginx-rebuild.conf

27 lines
841 B
Text
Raw Normal View History

2021-06-08 13:52:39 +08:00
# include nginx-rebuild.conf
2021-04-08 16:54:53 +08:00
server {
server_name YOUR_DOMAIN;
listen 80;
# HTTPS
#listen 443 ssl http2;
2021-06-08 13:52:39 +08:00
#ssl_certificate /pathto/ssl.crt;
#ssl_certificate_key /pathto/ssl.key;
2021-04-08 16:54:53 +08:00
# 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;
}
2021-06-08 13:52:39 +08:00
#location /h5app {
# alias /pathto/public/h5app;
2021-04-08 16:54:53 +08:00
# etag on;
#}
2021-06-08 13:52:39 +08:00
}