-
Notifications
You must be signed in to change notification settings - Fork 39
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
Showing
1 changed file
with
23 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,23 @@ | ||
server { | ||
listen 443 ssl; | ||
server_name www.you_redirector_domain_here.com; | ||
|
||
ssl on; | ||
ssl_certificate /etc/letsencrypt/live/www.you_redirector_domain_here.com/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/www.you_redirector_domain_here.com/privkey.pem; | ||
|
||
location / { | ||
proxy_pass https://www.proxied_domain_here.com:443/; | ||
proxy_redirect https://www.proxied_domain_here.com:443/ https://www.you_redirector_domain_here.com:443/; | ||
proxy_set_header Host www.proxied_domain_here.com; | ||
proxy_ssl_server_name on; | ||
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
} | ||
|
||
location ~ (regex_from_profile) { | ||
proxy_pass https://www.your_team_server_domain_here.com:443; | ||
proxy_redirect off; | ||
proxy_set_header Host $host; | ||
proxy_set_header "User-Agent" "${http_user_agent} - Original IP ${remote_addr}"; | ||
} | ||
} |