mirror of
https://github.com/hassio-addons/addon-phlex.git
synced 2025-05-04 11:11:28 +00:00
🔥 Removes IPv6 switch
This commit is contained in:
parent
7588a58d88
commit
e9124e2ed1
4 changed files with 2 additions and 14 deletions
|
@ -74,8 +74,7 @@ Example add-on configuration:
|
|||
"log_level": "info",
|
||||
"ssl": true,
|
||||
"certfile": "fullchain.pem",
|
||||
"keyfile": "privkey.pem",
|
||||
"ipv6": false
|
||||
"keyfile": "privkey.pem"
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -116,10 +115,6 @@ The private key file to use for SSL.
|
|||
|
||||
**Note**: _The file MUST be stored in `/ssl/`, which is the default for Hass.io_
|
||||
|
||||
### Option: `ipv6`
|
||||
|
||||
Set this option too `false` to disable IPv6 support.
|
||||
|
||||
## Embedding into Home Assistant
|
||||
|
||||
It is possible to embed Phlex directly into Home Assistant, allowing you to
|
||||
|
|
|
@ -20,10 +20,5 @@ if bashio::config.true 'ssl'; then
|
|||
sed -i "s/%%keyfile%%/${keyfile}/g" /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
||||
# Disables IPv6 in case its disabled by the user
|
||||
if ! bashio::config.true 'ipv6'; then
|
||||
sed -i '/listen \[::\].*/ d' /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
||||
# Set premissions
|
||||
chown nginx:nginx -R /opt
|
||||
|
|
|
@ -14,7 +14,6 @@ http {
|
|||
server {
|
||||
server_name hassio.local;
|
||||
listen 1778 default_server ssl;
|
||||
listen [::]:1778 default_server ssl;
|
||||
root /opt;
|
||||
index index.php;
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ http {
|
|||
server {
|
||||
server_name hassio.local;
|
||||
listen 1778 default_server;
|
||||
listen [::]:1778 default_server;
|
||||
root /opt;
|
||||
index index.php;
|
||||
|
||||
|
@ -26,4 +25,4 @@ http {
|
|||
include fastcgi_params;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue