Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- web_ip="xxx.xxx.xxx.xxx"
- mail_ip="xxx.xxx.xxx.xxx"
- server "domain.com" {
- listen on $web_ip tls port 443
- tls {
- certificate "/etc/ssl/domain.com.fullchain.pem"
- key "/etc/ssl/private/domain.com.key"
- }
- location "/.well-known/acme-challenge/*" {
- root "/acme"
- request strip 2
- }
- root "/htdocs/domain.com"
- }
- server "mail.domain.com" {
- listen on $mail_ip port 80
- location "/.well-known/acme-challenge/*" {
- root "/acme"
- request strip 2
- }
- location * {
- block return 302 "https://$HTTP_HOST$REQUEST_URI"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement