Skip to content

Instantly share code, notes, and snippets.

@tongphe
Last active May 6, 2020 13:32
Show Gist options
  • Save tongphe/5f27ac685124ddddf2ae841d16758e28 to your computer and use it in GitHub Desktop.
Save tongphe/5f27ac685124ddddf2ae841d16758e28 to your computer and use it in GitHub Desktop.
# Hassio nginx file location /usr/share/hassio/share/nginx_proxy/whitelist.conf:/share/nginx_proxy/whitelist.conf
# Nginx addon config
# customize:
# active: true
# default: nginx_proxy_default*.conf
# servers: nginx_proxy/*.conf
# Allow google assistant IPs
allow 66.249.0.0/16;
allow 108.177.0.0/16;
# Whitelist IPs
allow 192.168.1.0/24;
deny all;
error_page 403 = @redirect;
location @redirect {
return 302 https://google.com;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment