Skip to content

Commit 5875f6a

Browse files
authored
Create graylog.subdomain.conf.sample
1 parent cd3ee6a commit 5875f6a

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

graylog.subdomain.conf.sample

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## Version 2022/10/05
2+
# Ensure the upstream_port matches your GRAYLOG_HTTP_BIND_ADDRESS port
3+
# This conf assumes GRAYLOG_HTTP_BIND_ADDRESS=0.0.0.0:9000
4+
# make sure that your dns has a cname set for graylog and that your graylog container is not using a base url
5+
6+
server {
7+
listen 443 ssl;
8+
listen [::]:443 ssl;
9+
10+
server_name graylog.*;
11+
12+
include /config/nginx/ssl.conf;
13+
14+
client_max_body_size 0;
15+
16+
# enable for ldap auth (requires ldap-location.conf in the location block)
17+
#include /config/nginx/ldap-server.conf;
18+
19+
# enable for Authelia (requires authelia-location.conf in the location block)
20+
#include /config/nginx/authelia-server.conf;
21+
22+
location / {
23+
# enable the next two lines for http auth
24+
#auth_basic "Restricted";
25+
#auth_basic_user_file /config/nginx/.htpasswd;
26+
27+
# enable for ldap auth (requires ldap-server.conf in the server block)
28+
#include /config/nginx/ldap-location.conf;
29+
30+
# enable for Authelia (requires authelia-server.conf in the server block)
31+
#include /config/nginx/authelia-location.conf;
32+
33+
include /config/nginx/proxy.conf;
34+
include /config/nginx/resolver.conf;
35+
set $upstream_app graylog;
36+
set $upstream_port 9000;
37+
set $upstream_proto http;
38+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
39+
40+
}
41+
42+
}

0 commit comments

Comments
 (0)