mirror of
https://github.com/hassio-addons/addon-grocy.git
synced 2025-05-05 03:31:30 +00:00
🔨 Updates for upstream Supervisor changes
This commit is contained in:
parent
45fe79ac0b
commit
fc1ee435e0
3 changed files with 9 additions and 9 deletions
|
@ -4,7 +4,7 @@
|
|||
# Configures NGINX for use with Grocy
|
||||
# ==============================================================================
|
||||
declare certfile
|
||||
declare hassio_dns
|
||||
declare dns_host
|
||||
declare ingress_entry
|
||||
declare ingress_interface
|
||||
declare keyfile
|
||||
|
@ -32,5 +32,5 @@ sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/servers/ingress.conf
|
|||
ingress_entry=$(bashio::addon.ingress_entry)
|
||||
sed -i "s#%%ingress_entry%%#${ingress_entry}#g" /etc/php7/php-fpm.d/ingress.conf
|
||||
|
||||
hassio_dns=$(bashio::dns.host)
|
||||
sed -i "s/%%hassio_dns%%/${hassio_dns}/g" /etc/nginx/includes/resolver.conf
|
||||
dns_host=$(bashio::dns.host)
|
||||
sed -i "s/%%dns_host%%/${dns_host}/g" /etc/nginx/includes/resolver.conf
|
||||
|
|
|
@ -1 +1 @@
|
|||
resolver %%hassio_dns%%;
|
||||
resolver %%dns_host%%;
|
||||
|
|
|
@ -17,7 +17,7 @@ pcre_jit on;
|
|||
error_log /proc/1/fd/1 error;
|
||||
|
||||
# Load allowed environment vars
|
||||
env HASSIO_TOKEN;
|
||||
env SUPERVISOR_TOKEN;
|
||||
env DISABLE_HA_AUTHENTICATION;
|
||||
|
||||
# Load dynamic modules.
|
||||
|
@ -31,11 +31,11 @@ events {
|
|||
http {
|
||||
include /etc/nginx/includes/mime.types;
|
||||
|
||||
log_format hassio '[$time_local] $status '
|
||||
'$http_x_forwarded_for($remote_addr) '
|
||||
'$request ($http_user_agent)';
|
||||
log_format homeassistant '[$time_local] $status '
|
||||
'$http_x_forwarded_for($remote_addr) '
|
||||
'$request ($http_user_agent)';
|
||||
|
||||
access_log /proc/1/fd/1 hassio;
|
||||
access_log /proc/1/fd/1 homeassistant;
|
||||
client_max_body_size 4G;
|
||||
default_type application/octet-stream;
|
||||
gzip on;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue