Commit b4f36a7b authored by lipengcheng 's avatar lipengcheng

feat: docker

parent 5c0e69de
FROM nginx
COPY dist/ /www/docker-mouldvuecli3
COPY mouldvuecli3.conf /etc/nginx/conf.d/
server {
listen 80;
server_name localhost;
location / {
root /www/docker-mouldvuecli3;
try_files $uri $uri/ /index.html;
index index.html;
}
location /webapi {
# rewrite ^/webapi/(.*)$ /$1 break;
include uwsgi_params;
proxy_set_header Host $host;
proxy_set_header x-forwarded-for $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass https://test2.laihua.com;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment