Projekt

Obecné

Profil

Stáhnout (2.35 KB) Statistiky
| Větev: | Tag: | Revize:
1 888b0373 hlavja
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 /senslog1 {
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:8080;
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 /senslog-lite2/rest {
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
        location /api/SensLogV1/OGCSensorThings {
56
                  proxy_set_header X-Forwarded-Host $host;
57
                  proxy_set_header X-Forwarded-Server $host;
58
                  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
59
                  #proxy_pass http://<ContainerName>:<PortNumber>;
60
                  # In our case Container name is as we setup in docker-compose `beservice` and port 8080
61
                  proxy_pass http://51.15.45.95:9080;
62
                  proxy_max_temp_file_size "1024m";
63
                  proxy_read_timeout       "60s";
64
65
                  add_header X-Frame-Options SAMEORIGIN always;
66
67
        }
68
  }
69
}