Skip to content

Commit 1bbbfc3

Browse files
committed
added wordpress subdomain config sample
1 parent 12687cd commit 1bbbfc3

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

wordpress.subdomain.conf.sample

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## Version 2023/03/12
2+
# make sure that your wordpress container is named wordpress
3+
# make sure that your dns has a cname set for wordpress
4+
5+
server {
6+
listen 443 ssl;
7+
listen [::]:443 ssl;
8+
9+
server_name wordpress.*;
10+
11+
include /config/nginx/ssl.conf;
12+
13+
# enable for ldap auth (requires ldap-location.conf in the location block)
14+
#include /config/nginx/ldap-server.conf;
15+
16+
# enable for Authelia (requires authelia-location.conf in the location block)
17+
#include /config/nginx/authelia-server.conf;
18+
19+
# enable for Authentik (requires authentik-location.conf in the location block)
20+
#include /config/nginx/authentik-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+
# enable for Authentik (requires authentik-server.conf in the server block)
34+
#include /config/nginx/authentik-location.conf;
35+
36+
include /config/nginx/proxy.conf;
37+
include /config/nginx/resolver.conf;
38+
set $upstream_app wordpress;
39+
set $upstream_port 80;
40+
set $upstream_proto http;
41+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
42+
43+
}
44+
}

0 commit comments

Comments
 (0)