Skip to content

Commit d64ca4b

Browse files
Create drone.subdomain.conf.sample
1 parent 1ca82d1 commit d64ca4b

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

drone.subdomain.conf.sample

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
server {
2+
listen 443 ssl;
3+
listen [::]:443 ssl;
4+
5+
server_name drone.*;
6+
7+
include /config/nginx/ssl.conf;
8+
9+
client_max_body_size 0;
10+
11+
# enable for ldap auth, fill in ldap details in ldap.conf
12+
#include /config/nginx/ldap.conf;
13+
14+
# enable for Authelia
15+
#include /config/nginx/authelia-server.conf;
16+
17+
location / {
18+
# enable the next two lines for http auth
19+
#auth_basic "Restricted";
20+
#auth_basic_user_file /config/nginx/.htpasswd;
21+
22+
# enable the next two lines for ldap auth
23+
#auth_request /auth;
24+
#error_page 401 =200 /ldaplogin;
25+
26+
# enable for Authelia
27+
#include /config/nginx/authelia-location.conf;
28+
29+
include /config/nginx/proxy.conf;
30+
resolver 127.0.0.11 valid=30s;
31+
set $upstream_app drone;
32+
set $upstream_port 80;
33+
set $upstream_proto http;
34+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
35+
}
36+
}

0 commit comments

Comments
 (0)