]> git.somenet.org - pub/jan/aic18.git/blob - service-website/nginx/default.conf
Use our images on dockerhub instead of building them from scratch every time.
[pub/jan/aic18.git] / service-website / nginx / default.conf
1 server {
2     listen       8080;
3     server_name  localhost;
4
5     #charset koi8-r;
6     #access_log  /var/log/nginx/host.access.log  main;
7
8     location / {
9         root   /usr/share/nginx/html;
10         index  index.html index.htm;
11     }
12
13     location /engine-rest/ {
14         proxy_pass http://camunda:8085;
15         client_max_body_size 1024M;
16         proxy_set_header Connection "";
17         proxy_set_header Host $http_host;
18         proxy_set_header X-Real-IP $remote_addr;
19         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
20         proxy_set_header X-Forwarded-Proto $scheme;
21         proxy_set_header X-Frame-Options SAMEORIGIN;
22         proxy_buffers 256 16k;
23         proxy_buffer_size 16k;
24         proxy_read_timeout 600s;
25         proxy_cache_revalidate on;
26         proxy_cache_min_uses 2;
27         proxy_cache_use_stale timeout;
28         proxy_cache_lock on;
29     }
30
31     #error_page  404              /404.html;
32
33     # redirect server error pages to the static page /50x.html
34     #
35     error_page   500 502 503 504  /50x.html;
36     location = /50x.html {
37         root   /usr/share/nginx/html;
38     }
39
40     # proxy the PHP scripts to Apache listening on 127.0.0.1:80
41     #
42     #location ~ \.php$ {
43     #    proxy_pass   http://127.0.0.1;
44     #}
45
46     # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
47     #
48     #location ~ \.php$ {
49     #    root           html;
50     #    fastcgi_pass   127.0.0.1:9000;
51     #    fastcgi_index  index.php;
52     #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
53     #    include        fastcgi_params;
54     #}
55
56     # deny access to .htaccess files, if Apache's document root
57     # concurs with nginx's one
58     #
59     #location ~ /\.ht {
60     #    deny  all;
61     #}
62 }