mirror of
https://github.com/hassio-addons/addon-traccar.git
synced 2025-05-05 03:21:31 +00:00
⬆️ Upgrades Traccar to v5.0
This commit is contained in:
parent
62a48bbd5a
commit
59152f2f75
4 changed files with 5 additions and 33 deletions
|
@ -21,7 +21,7 @@ RUN \
|
||||||
xmlstarlet=1.6.1-r0 \
|
xmlstarlet=1.6.1-r0 \
|
||||||
\
|
\
|
||||||
&& curl -J -L -o /tmp/traccar.zip \
|
&& curl -J -L -o /tmp/traccar.zip \
|
||||||
"https://github.com/traccar/traccar/releases/download/v4.15/traccar-other-4.15.zip" \
|
"https://github.com/traccar/traccar/releases/download/v5.0/traccar-other-5.0.zip" \
|
||||||
\
|
\
|
||||||
&& mkdir -p /opt/traccar \
|
&& mkdir -p /opt/traccar \
|
||||||
&& unzip -d /opt/traccar /tmp/traccar.zip \
|
&& unzip -d /opt/traccar /tmp/traccar.zip \
|
||||||
|
|
|
@ -4,9 +4,8 @@ version: dev
|
||||||
slug: traccar
|
slug: traccar
|
||||||
description: Modern GPS Tracking Platform
|
description: Modern GPS Tracking Platform
|
||||||
url: https://github.com/hassio-addons/addon-traccar
|
url: https://github.com/hassio-addons/addon-traccar
|
||||||
|
webui: "[PROTO:ssl]://[HOST]:[PORT:80]/modern/"
|
||||||
codenotary: codenotary@frenck.dev
|
codenotary: codenotary@frenck.dev
|
||||||
ingress: true
|
|
||||||
ingress_port: 0
|
|
||||||
panel_icon: mdi:car-connected
|
panel_icon: mdi:car-connected
|
||||||
startup: services
|
startup: services
|
||||||
arch:
|
arch:
|
||||||
|
@ -15,16 +14,16 @@ arch:
|
||||||
init: false
|
init: false
|
||||||
host_network: true
|
host_network: true
|
||||||
ports:
|
ports:
|
||||||
80/tcp: null
|
80/tcp: 8082
|
||||||
ports_description:
|
ports_description:
|
||||||
80/tcp: Web interface (Not required for Ingress)
|
80/tcp: Web interface
|
||||||
map:
|
map:
|
||||||
- config:rw
|
- config:rw
|
||||||
- ssl
|
- ssl
|
||||||
services:
|
services:
|
||||||
- mysql:want
|
- mysql:want
|
||||||
options:
|
options:
|
||||||
ssl: true
|
ssl: false
|
||||||
certfile: fullchain.pem
|
certfile: fullchain.pem
|
||||||
keyfile: privkey.pem
|
keyfile: privkey.pem
|
||||||
schema:
|
schema:
|
||||||
|
|
|
@ -4,14 +4,6 @@
|
||||||
# Configures NGINX for use with the Traccar server
|
# Configures NGINX for use with the Traccar server
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
# Generate Ingress configuration
|
|
||||||
bashio::var.json \
|
|
||||||
interface "$(bashio::addon.ip_address)" \
|
|
||||||
port "$(bashio::addon.ingress_port)" \
|
|
||||||
| tempio \
|
|
||||||
-template /etc/nginx/templates/ingress.gtpl \
|
|
||||||
-out /etc/nginx/servers/ingress.conf
|
|
||||||
|
|
||||||
# Generate direct access configuration, if enabled.
|
# Generate direct access configuration, if enabled.
|
||||||
if bashio::var.has_value "$(bashio::addon.port 80)"; then
|
if bashio::var.has_value "$(bashio::addon.port 80)"; then
|
||||||
bashio::config.require.ssl
|
bashio::config.require.ssl
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
server {
|
|
||||||
listen {{ .interface }}:{{ .port }} default_server;
|
|
||||||
|
|
||||||
include /etc/nginx/includes/server_params.conf;
|
|
||||||
include /etc/nginx/includes/proxy_params.conf;
|
|
||||||
|
|
||||||
allow 172.30.32.2;
|
|
||||||
deny all;
|
|
||||||
|
|
||||||
location ~* /session$ {
|
|
||||||
proxy_set_header Content-Type application/x-www-form-urlencoded;
|
|
||||||
proxy_pass http://backend;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
proxy_set_header Content-Type application/json;
|
|
||||||
proxy_pass http://backend;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue