-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
nginx.conf
53 lines (43 loc) · 922 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright 2020 - Offen Authors <hioffen@posteo.de>
# SPDX-License-Identifier: Apache-2.0
events {}
http {
upstream auditorium {
server auditorium:9955;
}
upstream script {
server script:9966;
}
upstream vault {
server vault:9977;
}
upstream server {
server server:8080;
}
server {
listen 80;
absolute_redirect off;
# in development, all caching is disabled
proxy_hide_header "Cache-Control";
proxy_hide_header "Etag";
add_header "Cache-Control" "no-store";
location ~ vault/[a-z]+\.js$ {
proxy_pass http://vault;
proxy_redirect off;
rewrite ^/vault(.*)$ $1 break;
}
location ~ auditorium/[a-z]+\.js$ {
proxy_pass http://auditorium;
proxy_redirect off;
rewrite ^/auditorium(.*)$ $1 break;
}
location /script.js {
proxy_pass http://script/index.js;
proxy_redirect off;
}
location / {
proxy_pass http://server;
proxy_redirect off;
}
}
}