Projekt

Obecné

Profil

Stáhnout (1.7 KB) Statistiky
| Větev: | Tag: | Revize:
1
events{}
2
http {
3
  types {
4
    module js;
5
  }
6
  include       /etc/nginx/mime.types;
7

    
8
  server {
9
    listen		80;
10
    server_name	localhost;
11

    
12
    root        /usr/share/nginx/html/;
13

    
14
    location / {
15
      # First attempt to serve request as file, then
16
      # as directory, then redirect to index(angular) if no file found.
17
      try_files $uri $uri/ /index.html;
18
    }
19

    
20
    # redirect server error pages to the static page /50x.html
21
    #
22
    error_page   500 502 503 504  /50x.html;
23
    location = /50x.html {
24
      root   /usr/share/nginx/html;
25
    }
26

    
27
    location /analytics {
28
              proxy_set_header X-Forwarded-Host $host;
29
              proxy_set_header X-Forwarded-Server $host;
30
              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
31
              #proxy_pass http://<ContainerName>:<PortNumber>;
32
              # In our case Container name is as we setup in docker-compose `beservice` and port 8080
33
              proxy_pass http://51.15.45.95:9090;
34
              proxy_max_temp_file_size "1024m";
35
              proxy_read_timeout       "60s";
36

    
37
              add_header X-Frame-Options SAMEORIGIN always;
38

    
39
    }
40

    
41
    location /senslog15 {
42
              proxy_set_header X-Forwarded-Host $host;
43
              proxy_set_header X-Forwarded-Server $host;
44
              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
45
              #proxy_pass http://<ContainerName>:<PortNumber>;
46
              # In our case Container name is as we setup in docker-compose `beservice` and port 8080
47
              proxy_pass http://51.15.45.95:8080;
48
              proxy_max_temp_file_size "1024m";
49
              proxy_read_timeout       "60s";
50

    
51
              add_header X-Frame-Options SAMEORIGIN always;
52

    
53
    }
54
  }
55
}
(10-10/17)