MSP-6791 update nginx config
This commit is contained in:
1 parent
a98265f7d5
commit
7b30bf0344
4 files changed
+1051
-1008
No files matched your search
+14
-12
@@ -3,21 +3,23 @@ server {
|
||||
server_name localhost;
|
||||
root /opt/msp/isp-admin-ui/;
|
||||
|
||||
location __PUBLIC_PATH__api {
|
||||
client_max_body_size 10M;
|
||||
rewrite ^__PUBLIC_PATH__api/(.*)$ /api/$1 break;
|
||||
|
||||
proxy_pass http://10.2.4.241:9003/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
|
||||
location / {
|
||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||
add_header Pragma "no-cache"; # Для совместимости с HTTP/1.0
|
||||
expires off;
|
||||
try_files $uri __PUBLIC_PATH__/index.html;
|
||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||
add_header Pragma "no-cache"; # Для совместимости с HTTP/1.0
|
||||
expires off;
|
||||
try_files $uri __PUBLIC_PATH__index.html;
|
||||
}
|
||||
|
||||
location /api {
|
||||
client_max_body_size 10M;
|
||||
|
||||
proxy_pass http://isp-gate-service:9003;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
location /assets/ {
|
||||
gzip on;
|
||||
gzip_comp_level 6;
|
||||
|
||||
Reference in new issue
Block a user