forked from lambdaspace/website-dockerfile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23147f0
commit dd72fea
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
resolvers docker_dns | ||
nameserver dnsmasq 127.0.0.1:53 | ||
|
||
frontend ft_http | ||
bind *:80 | ||
bind :::80 | ||
mode http | ||
default_backend bk_http | ||
|
||
frontend ft_https | ||
bind *:443 | ||
bind :::443 | ||
mode tcp | ||
default_backend bk_https | ||
|
||
backend bk_http | ||
mode http | ||
|
||
acl website hdr(host) -i techministry.rocks | ||
acl website hdr(host) -i www.techministry.rocks | ||
acl discourse hdr(host) -i discourse.techministry.rocks | ||
|
||
use-server website_server if website | ||
use-server discourse_server if discourse | ||
|
||
server website_server website:80 resolvers docker_dns | ||
server discourse_server discourse:80 resolvers docker_dns | ||
|
||
backend bk_https | ||
mode tcp | ||
|
||
acl website req_ssl_sni -i techministry.rocks | ||
acl website req_ssl_sni -i www.techministry.rocks | ||
acl discourse req_ssl_sni -i discourse.techministry.rocks | ||
|
||
use-server website_server if website | ||
use-server discourse_server if discourse | ||
|
||
server website_server website:443 resolvers docker_dns | ||
server discourse_server discourse:443 resolvers docker_dns |