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/
|
||||
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Error</title>
|
||||
<style>
|
||||
html { color-scheme: light dark; }
|
||||
body { width: 35em; margin: 0 auto;
|
||||
font-family: Tahoma, Verdana, Arial, sans-serif; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>An error occurred.</h1>
|
||||
<p>Sorry, the page you are looking for is currently unavailable.<br/>
|
||||
Please try again later.</p>
|
||||
<p>If you are the system administrator of this resource then you should check
|
||||
the error log for details.</p>
|
||||
<p><em>Faithfully yours, nginx.</em></p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Welcome to nginx!</title>
|
||||
<style>
|
||||
html { color-scheme: light dark; }
|
||||
body { width: 35em; margin: 0 auto;
|
||||
font-family: Tahoma, Verdana, Arial, sans-serif; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Welcome to nginx!</h1>
|
||||
<p>If you see this page, the nginx web server is successfully installed and
|
||||
working. Further configuration is required.</p>
|
||||
|
||||
<p>For online documentation and support please refer to
|
||||
<a href="http://nginx.org/">nginx.org</a>.<br/>
|
||||
Commercial support is available at
|
||||
<a href="http://nginx.com/">nginx.com</a>.</p>
|
||||
|
||||
<p><em>Thank you for using nginx.</em></p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
mailru-domain: t41XlNGk5r6KEUvr
|
||||
Reference in New Issue
Block a user