|
|
@@ -0,0 +1,32 @@
|
|
|
+server{
|
|
|
+ listen 80;
|
|
|
+ server_name localhost;
|
|
|
+ client_max_body_size 1020M;
|
|
|
+ root /usr/share/nginx/html/public;
|
|
|
+ index index.html index.htm;
|
|
|
+
|
|
|
+ location / {
|
|
|
+ proxy_set_header Host $host;
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+ proxy_set_header X-Client-Verify SUCCESS;
|
|
|
+ proxy_set_header X-Client-DN $ssl_client_s_dn;
|
|
|
+ proxy_set_header X-SSL-Subject $ssl_client_s_dn;
|
|
|
+ proxy_set_header X-SSL-Issuer $ssl_client_i_dn;
|
|
|
+ proxy_read_timeout 1800;
|
|
|
+ proxy_connect_timeout 1800;
|
|
|
+ try_files $uri $uri/ /index.html;
|
|
|
+
|
|
|
+
|
|
|
+ add_header Access-Control-Allow-Origin $http_origin;
|
|
|
+ add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
|
|
|
+ add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
|
|
|
+
|
|
|
+ if ($request_method = 'OPTIONS') {
|
|
|
+ return 204;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ location /api/ {
|
|
|
+ proxy_pass http://gdt-auto-pro-in-svc/;
|
|
|
+ }
|