Skip to content

Commit 86545ab

Browse files
committed
nginx
1 parent 7f9664b commit 86545ab

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

favorite-file/Nginx-Settings/nginx-front.conf

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ http {
3535

3636
server {
3737

38-
listen 80;
39-
server_name localhost 127.0.0.1 139.159.190.24 gitnavi.com;
38+
listen 8001;
39+
server_name localhost 127.0.0.1 139.159.190.24 platform.gitnavi.com;
4040

4141
location / {
4242
root /root/.jenkins/workspace/nestle-platform-front-test/dist;
@@ -69,4 +69,41 @@ http {
6969
}
7070

7171
}
72+
73+
server {
74+
75+
listen 8002;
76+
server_name localhost 127.0.0.1 139.159.190.24 store.gitnavi.com;
77+
78+
location / {
79+
root /root/.jenkins/workspace/nestle-store-front-test/dist;
80+
index index.html index.htm;
81+
try_files $uri /index.html;
82+
}
83+
84+
location ^~ /store/ {
85+
proxy_pass http://127.0.0.1:28082;
86+
proxy_redirect off;
87+
proxy_set_header Host $host;
88+
proxy_set_header X-Real-IP $remote_addr;
89+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
90+
}
91+
92+
location ~ .*\.(js|css)?$ {
93+
root /root/.jenkins/workspace/nestle-store-front-test/dist;
94+
}
95+
96+
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico|woff|woff2|ttf|eot|txt|svg)$ {
97+
root /root/.jenkins/workspace/nestle-store-front-test/dist;
98+
}
99+
100+
error_page 404 /404.html;
101+
location = /usr/share/nginx/html/40x.html {
102+
}
103+
104+
error_page 500 502 503 504 /50x.html;
105+
location = /usr/share/nginx/html/50x.html {
106+
}
107+
108+
}
72109
}

0 commit comments

Comments
 (0)