Skip to content

Commit

Permalink
Create redirector-ssl-stealth.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
taherio committed Oct 31, 2017
1 parent bc5b42c commit 6e321b7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions redirector-ssl-stealth.conf
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}";
}
}

0 comments on commit 6e321b7

Please sign in to comment.