be910b4e15794c8971bda314313d5c066a75164a
[bottlenecks.git] / testing-scheduler / ui / config / default.conf
1 server {\r
2     listen       5311;\r
3     server_name  localhost;\r
4 \r
5     #charset koi8-r;\r
6     #access_log  /var/log/nginx/log/host.access.log  main;\r
7 \r
8     location / {\r
9         root   /usr/share/nginx/html;\r
10         index  index.html index.htm;\r
11     }\r
12 \r
13 \r
14     #error_page  404              /404.html;\r
15 \r
16     # redirect server error pages to the static page /50x.html\r
17     #\r
18     error_page   500 502 503 504  /50x.html;\r
19     location = /50x.html {\r
20         root   html;\r
21     }\r
22 \r
23     # proxy the PHP scripts to Apache listening on 127.0.0.1:80\r
24     #\r
25     #location ~ \.php$ {\r
26     #    proxy_pass   http://127.0.0.1;\r
27     #}\r
28     location ^~/parser/ {\r
29          rewrite ^/parser/(.*)$ /$1 break;\r
30          proxy_set_header Host $host;\r
31          proxy_set_header x-forwarded-for $remote_addr;\r
32          proxy_set_header X-Real-IP       $remote_addr;\r
33          proxy_pass http://t-scheduler-server:5310;\r
34     }\r
35     location ^~/wf-graph/ {\r
36          rewrite ^/wf-graph/(.*)$ /$1 break;\r
37          proxy_set_header Host $host;\r
38          proxy_set_header x-forwarded-for $remote_addr;\r
39          proxy_set_header X-Real-IP       $remote_addr;\r
40          proxy_pass http://conductor_conductor-ui_1:5000;\r
41     }\r
42     location ^~/api/ {\r
43          proxy_set_header Host $host;\r
44          proxy_set_header x-forwarded-for $remote_addr;\r
45          proxy_set_header X-Real-IP       $remote_addr;\r
46          proxy_pass http://conductor_conductor-ui_1:5000;\r
47     }\r
48     location ^~/wf-server/ {\r
49          rewrite ^/wf-server/(.*)$ /$1 break;\r
50          proxy_set_header Host $host;\r
51          proxy_set_header x-forwarded-for $remote_addr;\r
52          proxy_set_header X-Real-IP       $remote_addr;\r
53          proxy_pass http://conductor_conductor-server_1:8080;\r
54     }\r
55     # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000\r
56     #\r
57     #location ~ \.php$ {\r
58     #    root           html;\r
59     #    fastcgi_pass   127.0.0.1:9000;\r
60     #    fastcgi_index  index.php;\r
61     #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;\r
62     #    include        fastcgi_params;\r
63     #}\r
64 \r
65     # deny access to .htaccess files, if Apache's document root\r
66     # concurs with nginx's one\r
67     #\r
68     #location ~ /\.ht {\r
69     #    deny  all;\r
70     #}\r
71 }\r