File tree Expand file tree Collapse file tree 1 file changed +39
-2
lines changed
favorite-file/Nginx-Settings Expand file tree Collapse file tree 1 file changed +39
-2
lines changed Original file line number Diff line number Diff line change 35
35
36
36
server {
37
37
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;
40
40
41
41
location / {
42
42
root /root/.jenkins/workspace/nestle-platform-front-test/dist;
@@ -69,4 +69,41 @@ http {
69
69
}
70
70
71
71
}
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
+ }
72
109
}
You can’t perform that action at this time.
0 commit comments