File tree 3 files changed +25
-0
lines changed
3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ module.exports = {
26
26
} ] ,
27
27
'no-console' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
28
28
'no-debugger' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
29
+ 'no-undef' : 0 ,
29
30
'space-before-function-paren' : [ 'error' , 'never' ] ,
30
31
'vue/array-bracket-spacing' : 'error' ,
31
32
'vue/arrow-spacing' : 'error' ,
Original file line number Diff line number Diff line change @@ -68,6 +68,18 @@ http {
68
68
proxy_http_version 1.1 ;
69
69
proxy_pass http://api;
70
70
}
71
+
72
+ location ^~ /swagger {
73
+ proxy_redirect off ;
74
+ proxy_set_header X-Real-IP $remote_addr ;
75
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
76
+ proxy_set_header X-Forwarded-Proto $scheme ;
77
+ proxy_set_header Host $http_host ;
78
+ proxy_set_header X-NginX-Proxy true ;
79
+ proxy_set_header Connection "" ;
80
+ proxy_http_version 1.1 ;
81
+ proxy_pass http://swagger;
82
+ }
71
83
}
72
84
73
85
Original file line number Diff line number Diff line change @@ -68,6 +68,18 @@ http {
68
68
proxy_http_version 1.1;
69
69
proxy_pass http://stage-api;
70
70
}
71
+
72
+ location ^~ /swagger {
73
+ proxy_redirect off;
74
+ proxy_set_header X-Real-IP $remote_addr;
75
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
76
+ proxy_set_header X-Forwarded-Proto $scheme;
77
+ proxy_set_header Host $http_host;
78
+ proxy_set_header X-NginX-Proxy true;
79
+ proxy_set_header Connection "";
80
+ proxy_http_version 1.1;
81
+ proxy_pass http://swagger;
82
+ }
71
83
}
72
84
73
85
You can’t perform that action at this time.
0 commit comments