add ssl cert

This commit is contained in:
virusdefender
2017-11-25 12:30:00 +08:00
parent 6d08011e2d
commit cf40deb97c
8 changed files with 93 additions and 75 deletions

20
deploy/nginx/common.conf Normal file
View File

@@ -0,0 +1,20 @@
location /public {
root /app/data;
}
location /api {
proxy_pass http://backend;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
client_max_body_size 200M;
}
location /admin {
root /app/dist/admin;
try_files $uri $uri/ /index.html =404;
}
location / {
root /app/dist;
try_files $uri $uri/ /index.html =404;
}