mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-17 18:08:16 +01:00
Remove tabs
This commit is contained in:
@@ -34,22 +34,22 @@ http {
|
||||
# https://emby.media/community/index.php?/topic/93074-how-to-emby-with-nginx-with-windows-specific-tips-and-csp-options/
|
||||
server_names_hash_bucket_size 64;
|
||||
gzip_disable "msie6";
|
||||
gzip_comp_level 6;
|
||||
gzip_min_length 1100;
|
||||
gzip_buffers 16 8k;
|
||||
gzip_proxied any;
|
||||
gzip_types
|
||||
text/plain
|
||||
text/css
|
||||
text/js
|
||||
text/xml
|
||||
text/javascript
|
||||
application/javascript
|
||||
application/x-javascript
|
||||
application/json
|
||||
application/xml
|
||||
application/rss+xml
|
||||
image/svg+xml;
|
||||
gzip_comp_level 6;
|
||||
gzip_min_length 1100;
|
||||
gzip_buffers 16 8k;
|
||||
gzip_proxied any;
|
||||
gzip_types
|
||||
text/plain
|
||||
text/css
|
||||
text/js
|
||||
text/xml
|
||||
text/javascript
|
||||
application/javascript
|
||||
application/x-javascript
|
||||
application/json
|
||||
application/xml
|
||||
application/rss+xml
|
||||
image/svg+xml;
|
||||
proxy_connect_timeout 1h;
|
||||
|
||||
log_format hassio '[$time_local] $status '
|
||||
|
||||
@@ -1,62 +1,62 @@
|
||||
{
|
||||
"runOnStartup": true,
|
||||
"cronSchedule": "5 16 * * *",
|
||||
"logLevel": "info",
|
||||
"webPortalConfig": {
|
||||
"baseUrl": "https://localhost:3000"
|
||||
},
|
||||
"accounts": [
|
||||
{
|
||||
"email": "example@gmail.com",
|
||||
"password": "abc1234",
|
||||
"totp": "EMNCF83ULU3K3PXPJBSWY3DPEHPK3PXPJWY3DPEHPK3YI69R39NE"
|
||||
}
|
||||
],
|
||||
"notifiers": [
|
||||
{
|
||||
"type": "email",
|
||||
"smtpHost": "smtp.gmail.com",
|
||||
"smtpPort": 587,
|
||||
"emailSenderAddress": "hello@gmail.com",
|
||||
"emailSenderName": "Epic Games Captchas",
|
||||
"emailRecipientAddress": "hello@gmail.com",
|
||||
"secure": false,
|
||||
"auth": {
|
||||
"user": "hello@gmail.com",
|
||||
"pass": "abc123"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "discord",
|
||||
"webhookUrl": "https://discord.com/api/webhooks/123456789123456789/A-abcdefghijklmn-abcdefghijklmnopqrst12345678-abcdefghijklmnop123456",
|
||||
"mentionedUsers": ["914360712086843432"],
|
||||
"mentionedRoles": ["734548250895319070"]
|
||||
},
|
||||
{
|
||||
"type": "telegram",
|
||||
"token": "644739147:AAGMPo-Jz3mKRnHRTnrPEDi7jUF1vqNOD5k",
|
||||
"chatId": "-987654321"
|
||||
},
|
||||
{
|
||||
"type": "apprise",
|
||||
"apiUrl": "http://192.168.1.2:8000",
|
||||
"urls": "mailto://user:pass@gmail.com"
|
||||
},
|
||||
{
|
||||
"type": "pushover",
|
||||
"token": "a172fyyl9gw99p2xi16tq8hnib48p2",
|
||||
"userKey": "uvgidym7l5ggpwu2r8i1oy6diaapll"
|
||||
},
|
||||
{
|
||||
"type": "gotify",
|
||||
"apiUrl": "https://gotify.net",
|
||||
"token": "SnL-wAvmfo_QT"
|
||||
},
|
||||
{
|
||||
"type": "homeassistant",
|
||||
"instance": "https://homeassistant.example.com",
|
||||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
|
||||
"notifyservice": "mobile_app_smartphone_name"
|
||||
}
|
||||
]
|
||||
"cronSchedule": "5 16 * * *",
|
||||
"logLevel": "info",
|
||||
"webPortalConfig": {
|
||||
"baseUrl": "https://localhost:3000"
|
||||
},
|
||||
"accounts": [
|
||||
{
|
||||
"email": "example@gmail.com",
|
||||
"password": "abc1234",
|
||||
"totp": "EMNCF83ULU3K3PXPJBSWY3DPEHPK3PXPJWY3DPEHPK3YI69R39NE"
|
||||
}
|
||||
],
|
||||
"notifiers": [
|
||||
{
|
||||
"type": "email",
|
||||
"smtpHost": "smtp.gmail.com",
|
||||
"smtpPort": 587,
|
||||
"emailSenderAddress": "hello@gmail.com",
|
||||
"emailSenderName": "Epic Games Captchas",
|
||||
"emailRecipientAddress": "hello@gmail.com",
|
||||
"secure": false,
|
||||
"auth": {
|
||||
"user": "hello@gmail.com",
|
||||
"pass": "abc123"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "discord",
|
||||
"webhookUrl": "https://discord.com/api/webhooks/123456789123456789/A-abcdefghijklmn-abcdefghijklmnopqrst12345678-abcdefghijklmnop123456",
|
||||
"mentionedUsers": ["914360712086843432"],
|
||||
"mentionedRoles": ["734548250895319070"]
|
||||
},
|
||||
{
|
||||
"type": "telegram",
|
||||
"token": "644739147:AAGMPo-Jz3mKRnHRTnrPEDi7jUF1vqNOD5k",
|
||||
"chatId": "-987654321"
|
||||
},
|
||||
{
|
||||
"type": "apprise",
|
||||
"apiUrl": "http://192.168.1.2:8000",
|
||||
"urls": "mailto://user:pass@gmail.com"
|
||||
},
|
||||
{
|
||||
"type": "pushover",
|
||||
"token": "a172fyyl9gw99p2xi16tq8hnib48p2",
|
||||
"userKey": "uvgidym7l5ggpwu2r8i1oy6diaapll"
|
||||
},
|
||||
{
|
||||
"type": "gotify",
|
||||
"apiUrl": "https://gotify.net",
|
||||
"token": "SnL-wAvmfo_QT"
|
||||
},
|
||||
{
|
||||
"type": "homeassistant",
|
||||
"instance": "https://homeassistant.example.com",
|
||||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
|
||||
"notifyservice": "mobile_app_smartphone_name"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
|
||||
:%%port%% {
|
||||
@proxied path /api/* /docs /openapi.json
|
||||
@proxied path /api/* /docs /openapi.json
|
||||
|
||||
@static {
|
||||
file
|
||||
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2 *.webp
|
||||
}
|
||||
@static {
|
||||
file
|
||||
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2 *.webp
|
||||
}
|
||||
|
||||
encode gzip zstd
|
||||
encode gzip zstd
|
||||
|
||||
# Handles Recipe Images / Assets
|
||||
handle_path /api/media/recipes/* {
|
||||
header Access-Control-Allow-Origin *
|
||||
# Handles Recipe Images / Assets
|
||||
handle_path /api/media/recipes/* {
|
||||
header Access-Control-Allow-Origin *
|
||||
header X-Content-Type-Options nosniff
|
||||
header X-Robots-Tag none
|
||||
header -X-Frame-Options
|
||||
@@ -22,15 +22,15 @@
|
||||
header X-Forwarded-For $proxy_add_x_forwarded_for
|
||||
header X-Forwarded-Proto $scheme
|
||||
header X-NginX-Proxy true
|
||||
header X-External-Path $http_x_ingress_path
|
||||
header X-External-Path $http_x_ingress_path
|
||||
header X-Real-IP $remote_addr
|
||||
header @static Cache-Control max-age=31536000
|
||||
root * /app/data/recipes/
|
||||
file_server
|
||||
}
|
||||
header @static Cache-Control max-age=31536000
|
||||
root * /app/data/recipes/
|
||||
file_server
|
||||
}
|
||||
|
||||
handle @proxied {
|
||||
header Access-Control-Allow-Origin *
|
||||
handle @proxied {
|
||||
header Access-Control-Allow-Origin *
|
||||
header X-Content-Type-Options nosniff
|
||||
header X-Robots-Tag none
|
||||
header -X-Frame-Options
|
||||
@@ -42,13 +42,13 @@
|
||||
header X-Forwarded-Proto $scheme
|
||||
header X-NginX-Proxy true
|
||||
header X-Real-IP $remote_addr
|
||||
header X-External-Path $http_x_ingress_path;
|
||||
rewrite * {Referer}{uri}
|
||||
reverse_proxy http://127.0.0.1:9000
|
||||
}
|
||||
header X-External-Path $http_x_ingress_path;
|
||||
rewrite * {Referer}{uri}
|
||||
reverse_proxy http://127.0.0.1:9000
|
||||
}
|
||||
|
||||
handle {
|
||||
header Access-Control-Allow-Origin *
|
||||
handle {
|
||||
header Access-Control-Allow-Origin *
|
||||
header X-Content-Type-Options nosniff
|
||||
header X-Robots-Tag none
|
||||
header -X-Frame-Options
|
||||
@@ -60,11 +60,11 @@
|
||||
header X-Forwarded-Proto $scheme
|
||||
header X-NginX-Proxy true
|
||||
header X-Real-IP $remote_addr
|
||||
header X-External-Path $http_x_ingress_path;
|
||||
header @static Cache-Control max-age=31536000
|
||||
root * /app/dist
|
||||
try_files {path}.html {path} /
|
||||
file_server
|
||||
}
|
||||
header X-External-Path $http_x_ingress_path;
|
||||
header @static Cache-Control max-age=31536000
|
||||
root * /app/dist
|
||||
try_files {path}.html {path} /
|
||||
file_server
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -42,11 +42,11 @@ CURRENTPASSWORD=$( cat /data/portainer_password )
|
||||
|
||||
# Reset password if not first run
|
||||
if bashio::fs.file_exists "/data/hidden"; then
|
||||
if [ "$CURRENTPASSWORD" != "$PASSWORD" ]; then
|
||||
mv -f /data/portainer.db /data/portainer.old || true
|
||||
rm /data/hidden || true
|
||||
bashio::log.warning "... password changed, database reseted. Previous version stored in /data/portainer.old"
|
||||
fi
|
||||
if [ "$CURRENTPASSWORD" != "$PASSWORD" ]; then
|
||||
mv -f /data/portainer.db /data/portainer.old || true
|
||||
rm /data/hidden || true
|
||||
bashio::log.warning "... password changed, database reseted. Previous version stored in /data/portainer.old"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Define option
|
||||
|
||||
Reference in New Issue
Block a user