-
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.
#16: host old logs directly on our server
- Loading branch information
Showing
1 changed file
with
32 additions
and
28 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 |
---|---|---|
@@ -1,37 +1,41 @@ | ||
server { | ||
listen 443 ssl; | ||
server_name codingteam.org.ru; | ||
keepalive_timeout 60; | ||
ssl_certificate /etc/letsencrypt/live/loglist.net/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/loglist.net/privkey.pem; | ||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
ssl_ciphers "HIGH:!aNULL:!MD5:!kEDH"; | ||
add_header Strict-Transport-Security 'max-age=15552000'; | ||
listen 443 ssl; | ||
server_name codingteam.org.ru; | ||
keepalive_timeout 60; | ||
ssl_certificate /etc/letsencrypt/live/loglist.net/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/loglist.net/privkey.pem; | ||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
ssl_ciphers "HIGH:!aNULL:!MD5:!kEDH"; | ||
add_header Strict-Transport-Security 'max-age=15552000'; | ||
|
||
location /_logs/ { | ||
proxy_set_header X-Forwarded-Host $host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_http_version 1.1; | ||
proxy_pass https://chatlogs.jabber.ru/; | ||
} | ||
location /_logs/ { | ||
proxy_set_header X-Forwarded-Host $host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_http_version 1.1; | ||
proxy_pass https://chatlogs.jabber.ru/; | ||
} | ||
|
||
location /old-logs/ { | ||
alias /opt/codingteam/old-logs/; | ||
index index.html; | ||
} | ||
|
||
location / { | ||
proxy_set_header X-Forwarded-Host $host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host codingteam.org.ru; | ||
proxy_http_version 1.1; | ||
proxy_pass http://localhost:5000/; | ||
} | ||
location / { | ||
proxy_set_header X-Forwarded-Host $host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host codingteam.org.ru; | ||
proxy_http_version 1.1; | ||
proxy_pass http://localhost:5000/; | ||
} | ||
} | ||
|
||
server { | ||
listen 80; | ||
server_name codingteam.org.ru; | ||
listen 80; | ||
server_name codingteam.org.ru; | ||
|
||
location / { | ||
rewrite ^(.*)$ https://codingteam.org.ru$1 permanent; | ||
} | ||
location / { | ||
rewrite ^(.*)$ https://codingteam.org.ru$1 permanent; | ||
} | ||
} |