|
| 1 | + |
| 2 | +events { |
| 3 | + worker_connections 1024; |
| 4 | +} |
| 5 | + |
| 6 | +http { |
| 7 | + server { |
| 8 | + location /tumbling { |
| 9 | + proxy_pass http://analytics_tumbling:8080; |
| 10 | + rewrite ^/tumbling(.*)$ /$1 break; |
| 11 | + |
| 12 | + proxy_set_header HOST $host; |
| 13 | + proxy_set_header X-Forwarded-For $remote_addr; |
| 14 | + proxy_set_header 'Access-Control-Allow-Origin' '*'; |
| 15 | + proxy_set_header 'Access-Control-Allow-Credentials' 'true'; |
| 16 | + proxy_set_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; |
| 17 | + proxy_set_header 'Access-Control-Allow-Headers' 'X-LOC,Location,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'; |
| 18 | + |
| 19 | + } |
| 20 | + location /hopping { |
| 21 | + proxy_pass http://analytics_hopping:8080; |
| 22 | + rewrite /hopping(.*)$ /$1 break; |
| 23 | + |
| 24 | + proxy_set_header HOST $host; |
| 25 | + proxy_set_header X-Forwarded-For $remote_addr; |
| 26 | + proxy_set_header 'Access-Control-Allow-Origin' '*'; |
| 27 | + proxy_set_header 'Access-Control-Allow-Credentials' 'true'; |
| 28 | + proxy_set_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; |
| 29 | + proxy_set_header 'Access-Control-Allow-Headers' 'X-LOC,Location,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'; |
| 30 | + |
| 31 | + } |
| 32 | + location /sliding { |
| 33 | + proxy_pass http://analytics_sliding:8080; |
| 34 | + rewrite /sliding(.*)$ /$1 break; |
| 35 | + |
| 36 | + proxy_set_header HOST $host; |
| 37 | + proxy_set_header X-Forwarded-For $remote_addr; |
| 38 | + proxy_set_header 'Access-Control-Allow-Origin' '*'; |
| 39 | + proxy_set_header 'Access-Control-Allow-Credentials' 'true'; |
| 40 | + proxy_set_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; |
| 41 | + proxy_set_header 'Access-Control-Allow-Headers' 'X-LOC,Location,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'; |
| 42 | + |
| 43 | + } |
| 44 | + |
| 45 | + location /session { |
| 46 | + proxy_pass http://analytics_session:8080; |
| 47 | + rewrite /session(.*)$ /$1 break; |
| 48 | + |
| 49 | + proxy_set_header HOST $host; |
| 50 | + proxy_set_header X-Forwarded-For $remote_addr; |
| 51 | + proxy_set_header 'Access-Control-Allow-Origin' '*'; |
| 52 | + proxy_set_header 'Access-Control-Allow-Credentials' 'true'; |
| 53 | + proxy_set_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; |
| 54 | + proxy_set_header 'Access-Control-Allow-Headers' 'X-LOC,Location,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'; |
| 55 | + |
| 56 | + } |
| 57 | + |
| 58 | + location /none { |
| 59 | + proxy_pass http://analytics_none:8080; |
| 60 | + rewrite /session(.*)$ /$1 break; |
| 61 | + |
| 62 | + proxy_set_header HOST $host; |
| 63 | + proxy_set_header X-Forwarded-For $remote_addr; |
| 64 | + proxy_set_header 'Access-Control-Allow-Origin' '*'; |
| 65 | + proxy_set_header 'Access-Control-Allow-Credentials' 'true'; |
| 66 | + proxy_set_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; |
| 67 | + proxy_set_header 'Access-Control-Allow-Headers' 'X-LOC,Location,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'; |
| 68 | + |
| 69 | + } |
| 70 | + } |
| 71 | +} |
0 commit comments