Commit 12042c81 by 温丽香

nginx配置代理

1 parent 02a106cd
Pipeline #3674 failed
in 3 seconds
Showing with 55 additions and 0 deletions
# pushState friendly!
# The setup:
# * website name is `_`
# * javascript app is located at `/app`
charset utf-8;
tcp_nopush on;
tcp_nodelay off;
client_header_timeout 10s;
client_body_timeout 10s;
client_max_body_size 128k;
reset_timedout_connection on;
gzip on;
gzip_types
text/css
text/javascript
text/xml
text/plain
application/javascript
application/x-javascript
application/json
application/xml
application/rss+xml
application/atom+xml
font/truetype
font/opentype
image/svg+xml;
server {
listen 80;
server_name localhost;
root /app;
expires $expires;
# To make sure any assets can get through :)
location / {
try_files $uri @rewrites;
}
location /front {
proxy_pass https://hzdev.seetatech.com:9997;
proxy_ssl_verify off;
}
# If no asset matches, send it to your javascript app. Hopefully it's a route in the app!
location @rewrites {
rewrite ^(.+)$ /index.html last;
}
}
\ No newline at end of file
...@@ -10,5 +10,6 @@ services: ...@@ -10,5 +10,6 @@ services:
context: . context: .
volumes: volumes:
- /ssl:/app/ssl - /ssl:/app/ssl
- default.conf:/etc/nginx/conf.d/default.conf
ports: ports:
- 9998:80 - 9998:80
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!