first commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
upstream wildberries {
|
||||
server 185.62.200.33:443;
|
||||
keepalive 100;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
#listen 443 default ssl;
|
||||
|
||||
server_name _;
|
||||
|
||||
#ssl_certificate /config/keys/cert.crt;
|
||||
#ssl_certificate_key /config/keys/cert.key;
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
location ~/.well-known/acme-challenge/(.*)$ {
|
||||
proxy_pass http://certbot;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /var/www;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
upstream hass {
|
||||
server 192.168.1.6:8123;
|
||||
}
|
||||
upstream certbot {
|
||||
server 192.168.1.6:8081;
|
||||
}
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen 443 ssl;
|
||||
server_name home-alt.yandex5.ru;
|
||||
|
||||
ssl_certificate /config/keys/live/home-alt.yandex5.ru/fullchain.pem;
|
||||
ssl_certificate_key /config/keys/live/home-alt.yandex5.ru/privkey.pem;
|
||||
|
||||
#access_log off;
|
||||
location ~/.well-known/acme-challenge/(.*)$ {
|
||||
proxy_pass http://certbot;
|
||||
}
|
||||
|
||||
location / {
|
||||
real_ip_header X-Forwarded-For;
|
||||
set_real_ip_from 0.0.0.0/0;
|
||||
|
||||
proxy_pass http://hass;
|
||||
proxy_set_header Host $host;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Host $remote_addr;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
z2m:$apr1$qwezKwdE$w9svU1vTcjRKn9CB8Z7WW/
|
||||
Reference in New Issue
Block a user