mirror of
https://github.com/hassio-addons/addon-traccar.git
synced 2025-05-05 03:21:31 +00:00
🔨 Refactors add-on to use Hassio ports on the host network
This commit is contained in:
parent
43b28dce8c
commit
327d29fdd9
2 changed files with 7 additions and 4 deletions
|
@ -16,21 +16,24 @@
|
||||||
"boot": "auto",
|
"boot": "auto",
|
||||||
"hassio_api": true,
|
"hassio_api": true,
|
||||||
"hassio_role": "default",
|
"hassio_role": "default",
|
||||||
"homeassistant_api": false,
|
|
||||||
"host_network": true,
|
"host_network": true,
|
||||||
|
"ports": {
|
||||||
|
"8072/tcp": 8072
|
||||||
|
},
|
||||||
|
"ports_description": {
|
||||||
|
"8072/tcp": "Traccar web interface"
|
||||||
|
},
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw",
|
"config:rw",
|
||||||
"ssl"
|
"ssl"
|
||||||
],
|
],
|
||||||
"options": {
|
"options": {
|
||||||
"port": 8072,
|
|
||||||
"ssl": true,
|
"ssl": true,
|
||||||
"certfile": "fullchain.pem",
|
"certfile": "fullchain.pem",
|
||||||
"keyfile": "privkey.pem"
|
"keyfile": "privkey.pem"
|
||||||
},
|
},
|
||||||
"schema": {
|
"schema": {
|
||||||
"log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)?",
|
"log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)?",
|
||||||
"port": "port",
|
|
||||||
"ssl": "bool",
|
"ssl": "bool",
|
||||||
"certfile": "str",
|
"certfile": "str",
|
||||||
"keyfile": "str"
|
"keyfile": "str"
|
||||||
|
|
|
@ -20,5 +20,5 @@ if bashio::config.true 'ssl'; then
|
||||||
sed -i "s/%%keyfile%%/${keyfile}/g" /etc/nginx/nginx.conf
|
sed -i "s/%%keyfile%%/${keyfile}/g" /etc/nginx/nginx.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
port=$(bashio::config 'port')
|
port=$(bashio::addon.port 8072)
|
||||||
sed -i "s/%%port%%/${port}/g" /etc/nginx/nginx.conf
|
sed -i "s/%%port%%/${port}/g" /etc/nginx/nginx.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue