Skip to content

Commit

Permalink
Fix HTTP 415 unsupported media bug (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Nov 11, 2021
1 parent c5cf05b commit dd0b547
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion traccar/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ description: Modern GPS Tracking Platform
url: https://github.com/hassio-addons/addon-traccar
ingress: true
ingress_port: 0
ingress_stream: true
panel_icon: mdi:car-connected
startup: services
arch:
Expand Down
9 changes: 6 additions & 3 deletions traccar/rootfs/etc/nginx/templates/ingress.gtpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ server {
allow 172.30.32.2;
deny all;

location / {
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;
}
}

0 comments on commit dd0b547

Please sign in to comment.