наброски
This commit is contained in:
commit
6edf8aec60
6 changed files with 52 additions and 0 deletions
0
.env.example
Normal file
0
.env.example
Normal file
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
0
README.md
Normal file
0
README.md
Normal file
0
services/nginx/nginx.conf
Normal file
0
services/nginx/nginx.conf
Normal file
28
services/nginx/sites-enabled/bot2.ihateamerica.ru
Normal file
28
services/nginx/sites-enabled/bot2.ihateamerica.ru
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
server {
|
||||
listen 443 ssl;
|
||||
server_name bot2.ihateamerica.ru;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/bot2.ihateamerica.ru/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/bot2.ihateamerica.ru/privkey.pem;
|
||||
|
||||
access_log /var/log/nginx/bot2_access.log;
|
||||
|
||||
location / {
|
||||
proxy_pass http://10.100.0.5:8080;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
# Для вебхуков важно не буферизировать
|
||||
proxy_buffering off;
|
||||
proxy_request_buffering off;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name bot2.ihateamerica.ru;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
24
services/nginx/sites-enabled/ci.ihateamerica.ru
Normal file
24
services/nginx/sites-enabled/ci.ihateamerica.ru
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
server {
|
||||
listen 443 ssl;
|
||||
server_name ci.ihateamerica.ru;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/ci.ihateamerica.ru/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/ci.ihateamerica.ru/privkey.pem;
|
||||
|
||||
access_log /var/log/nginx/ci_access.log;
|
||||
|
||||
location / {
|
||||
proxy_pass http://10.100.0.5:8008;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name ci.ihateamerica.ru;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue