-
Notifications
You must be signed in to change notification settings - Fork 3
/
nginx.conf
55 lines (45 loc) · 1.23 KB
/
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
54
55
#client_max_body_size 1M;
#client_body_buffer_size 1M;
#
env AUTH_TOKEN;
env BITBUCKET_MATTERMOST_URL;
env BITBUCKET_MATTERMOST_USER;
env PIPELINES_MATTERMOST_URL;
env PIPELINES_MATTERMOST_USER;
env SENTRY_MATTERMOST_URL;
env SENTRY_MATTERMOST_USER;
env TEAMCITY_MATTERMOST_URL;
env TEAMCITY_MATTERMOST_USER;
env TEAMCITY_SERVER_URL;
env TEAMCITY_SERVER_AUTH;
worker_processes 1;
error_log logs/error.log;
events {
worker_connections 1024;
}
http {
lua_package_path '/code/?.lua;;';
server {
listen 80;
resolver 8.8.8.8;
location / {
default_type text/html;
content_by_lua_file /code/index.lua;
}
location ~ ^/mattermost/([-_a-zA-Z0-9/]+) {
access_by_lua_file /code/auth.lua;
set $path $1;
content_by_lua_file /code/mattermost/$path.lua;
}
location ~ ^/sentry/([-_a-zA-Z0-9/]+) {
access_by_lua_file /code/auth.lua;
set $path $1;
content_by_lua_file /code/sentry/$path.lua;
}
location ~ ^/teamcity/([-_a-zA-Z0-9/]+) {
access_by_lua_file /code/auth.lua;
set $path $1;
content_by_lua_file /code/teamcity/$path.lua;
}
}
}