-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault
More file actions
40 lines (34 loc) · 1.07 KB
/
default
File metadata and controls
40 lines (34 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# SPDX-FileCopyrightText: 2016-2025 codingteam/devops contributors <https://github.com/codingteam/devops>
#
# SPDX-License-Identifier: MIT
server {
listen 443 ssl http2;
server_name codingteam.org.ru;
include /etc/nginx/ssl.conf;
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/;
}
}
server {
listen 80;
server_name codingteam.org.ru;
location / {
rewrite ^(.*)$ https://codingteam.org.ru$1 permanent;
}
}