mirror of
https://github.com/hassio-addons/addon-tasmoadmin.git
synced 2025-05-05 03:21:34 +00:00
🔥 Removes IPv6 switch
This commit is contained in:
parent
f925a4d825
commit
a16ceeeac6
4 changed files with 2 additions and 10 deletions
|
@ -25,17 +25,15 @@
|
|||
"options": {
|
||||
"ssl": true,
|
||||
"certfile": "fullchain.pem",
|
||||
"keyfile": "privkey.pem",
|
||||
"ipv6": false
|
||||
"keyfile": "privkey.pem"
|
||||
},
|
||||
"schema": {
|
||||
"log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)?",
|
||||
"ssl": "bool",
|
||||
"certfile": "str",
|
||||
"keyfile": "str",
|
||||
"ipv6": "bool"
|
||||
},
|
||||
"environment": {
|
||||
"LOG_FORMAT": "{LEVEL}: {MESSAGE}"
|
||||
"keyfile": "str"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,3 @@ if hass.config.true 'ssl'; then
|
|||
sed -i "s/%%certfile%%/${certfile}/g" /etc/nginx/nginx.conf
|
||||
sed -i "s/%%keyfile%%/${keyfile}/g" /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
||||
if ! hass.config.true 'ipv6'; then
|
||||
sed -i '/listen \[::\].*/ d' /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
|
|
@ -15,7 +15,6 @@ http {
|
|||
server {
|
||||
server_name hassio.local;
|
||||
listen 9541 default_server ssl;
|
||||
listen [::]:9541 default_server ssl;
|
||||
root /var/www/tasmoadmin/tasmoadmin;
|
||||
index index.php;
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@ http {
|
|||
server {
|
||||
server_name hassio.local;
|
||||
listen 9541 default_server;
|
||||
listen [::]:9541 default_server;
|
||||
root /var/www/tasmoadmin/tasmoadmin/;
|
||||
index index.php;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue