master
parent
f35cc54770
commit
f8dbdb1958
@ -1,3 +1,3 @@
|
||||
FROM 192.168.3.157:8001/library/nginx:1.20-alpine
|
||||
FROM nginx:1.20-alpine
|
||||
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||
ADD dist /usr/share/nginx/html
|
||||
|
@ -1,21 +1,26 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen 9000;
|
||||
server_name localhost;
|
||||
default_type 'text/html';
|
||||
charset utf-8;
|
||||
|
||||
location @fallback{
|
||||
rewrite .* /index.html break;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
index index.html index.htm;
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
|
||||
location /prod-api/ {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header REMOTE-HOST $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://192.168.202.20:8080/;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue