36 lines
841 B
Nginx Configuration File
36 lines
841 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
root /usr/share/nginx/html;
|
|
|
|
location = / {
|
|
alias /usr/share/nginx/html/h5/;
|
|
try_files index.html =404;
|
|
}
|
|
|
|
location / {
|
|
alias /usr/share/nginx/html/h5/;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location /h5/ {
|
|
alias /usr/share/nginx/html/h5/;
|
|
try_files $uri $uri/ /h5/index.html;
|
|
}
|
|
|
|
location /admin/ {
|
|
root /usr/share/nginx/html;
|
|
try_files $uri $uri/ /admin/index.html;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass http://huishou-backend:4000/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;
|
|
}
|
|
|
|
location /icons/ {
|
|
proxy_pass http://huishou-backend:4000/icons/;
|
|
}
|
|
} |