nginx config path : /root/config/nginx/conf/conf.d/default.conf
defautl config content:
server { listen 20000; listen [::]:20000; server_name 127.0.0.1; #前端包 location /{ root /usr/share/nginx/html/; try_files $uri $uri/ @router; index index.html; } location @router { rewrite ^.*$ /index.html last; } #后端服务 location ^~ /api/ { 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_pass http://172.17.0.1:8088/; proxy_read_timeout 180; } #文件服务 location ^~ /file/ { 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_pass http://127.17.0.1:9000/; proxy_pass http://172.17.0.1:9000/; }
}
Content type
Image
Digest
sha256:61face6bf…
Size
54.1 MB
Last updated
almost 2 years ago
docker pull yeforxingkong/comic_nginix