add fridge and fitolamp

This commit is contained in:
monster
2019-03-09 21:33:39 +03:00
parent dabb9353f6
commit 6c32dd94ba
11 changed files with 120 additions and 8 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ server {
#letsencrypt challenge response
location ~/.well-known/acme-challenge/(.*)$ {
return 200 '$1';
proxy_pass http://certbot;
}
location / {
@@ -0,0 +1,30 @@
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;
#letsencrypt challenge response
CdVsNcvBapg7d3o0ZaixdMbMt5FqG7T7Z19CJsotuGI.hTi2mqIkE64NQibEfAxiC4ih0s6_pk4Ne2hCgHXFntI location ~/.well-known/acme-challenge/(.*)$ {
return 200 '$1';
}
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;
}
}
+1 -4
View File
@@ -31,11 +31,8 @@ server {
#limit_conn perip 10;
#access_log off;
location ~/.well-known/acme-challenge/(.*)\.(.*)$ {
return 200 '$1';
}
location ~/.well-known/acme-challenge/(.*)$ {
return 200 '$1';
proxy_pass http://certbot;
}
location / {