Projekt

Obecné

Profil

Stáhnout (3.46 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 87c1bdd1 hlavja
    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
    location /analytics {
70
              proxy_set_header X-Forwarded-Host $host;
71
              proxy_set_header X-Forwarded-Server $host;
72
              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
73
              #proxy_pass http://<ContainerName>:<PortNumber>;
74
              # In our case Container name is as we setup in docker-compose `beservice` and port 8080
75
              proxy_pass http://51.15.45.95:9090;
76
              proxy_max_temp_file_size "1024m";
77
              proxy_read_timeout       "60s";
78
79
              add_header X-Frame-Options SAMEORIGIN always;
80
81
    }
82
83
    location /senslog15 {
84
              proxy_set_header X-Forwarded-Host $host;
85
              proxy_set_header X-Forwarded-Server $host;
86
              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
87
              #proxy_pass http://<ContainerName>:<PortNumber>;
88
              # In our case Container name is as we setup in docker-compose `beservice` and port 8080
89
              proxy_pass http://51.15.45.95:8080;
90
              proxy_max_temp_file_size "1024m";
91
              proxy_read_timeout       "60s";
92
93
              add_header X-Frame-Options SAMEORIGIN always;
94
95
    }
96 888b0373 hlavja
  }
97
}