Skip to content

Commit ff9b7ed

Browse files
authored
Merge pull request #409 from linuxserver/hedgedoc
2 parents 9dbe057 + c3376ae commit ff9b7ed

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

hedgedoc.subdomain.conf.sample

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## Version 2021/12/08
2+
# make sure you set the following environment variables in your docker arguments
3+
# CMD_DOMAIN=hedgedoc.server.com
4+
# CMD_URL_ADDPORT=false
5+
6+
server {
7+
listen 443 ssl;
8+
listen [::]:443 ssl;
9+
10+
server_name hedgedoc.*;
11+
12+
include /config/nginx/ssl.conf;
13+
14+
client_max_body_size 0;
15+
16+
# enable for ldap auth, fill in ldap details in ldap.conf
17+
#include /config/nginx/ldap.conf;
18+
19+
# enable for Authelia
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 the next two lines for ldap auth
28+
#auth_request /auth;
29+
#error_page 401 =200 /ldaplogin;
30+
31+
# enable for Authelia
32+
#include /config/nginx/authelia-location.conf;
33+
34+
include /config/nginx/proxy.conf;
35+
include /config/nginx/resolver.conf;
36+
set $upstream_app hedgedoc;
37+
set $upstream_port 3000;
38+
set $upstream_proto http;
39+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
40+
41+
}
42+
}

0 commit comments

Comments
 (0)