-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.conf.sample
More file actions
39 lines (30 loc) · 867 Bytes
/
server.conf.sample
File metadata and controls
39 lines (30 loc) · 867 Bytes
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
js_include njs/auth.js;
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
include include/ssl.conf;
include include/gzip.conf;
include include/acme.conf;
server_name example.com default;
root /usr/local/www/example.com/;
index index.html;
client_max_body_size 10M;
ssl_certificate /somewhere/example.com/fullchain.pem;
ssl_certificate_key /somewhere/private/example.com.pem;
server_tokens off;
location /auth/ {
js_content validate;
}
location /ldapauth {
proxy_pass http://example.com/doldapauth;
proxy_set_header Authorization "Basic $arg_auth";
proxy_pass_header Authorization;
}
location /doldapauth {
auth_ldap "Forbidden";
auth_ldap_servers mail_users;
js_content granted;
}
}