Skip to content

Commit f60583d

Browse files
committed
wip
1 parent 54eb4b1 commit f60583d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

ansible/roles/nginx/templates/crowd-sourced-realtime.conf.j2

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ server {
6666
proxy_cache_lock on;
6767
}
6868

69-
location /api/v1/submit {
70-
proxy_pass http://10.11.1.1:5001/api/v1/submit;
69+
location /api/v1/ {
70+
proxy_pass http://10.11.1.1:5001/api/v1/;
7171
}
7272

7373
location / {
@@ -77,12 +77,18 @@ server {
7777
<h3>Supported endpoints</h3>
7878
<p>
7979
<code>POST /api/v1/submit</code><br />
80-
8180
Example body:<br />
8281
<code>
83-
{"position": {"lat": 43.58199, "lon": 19.52472}, "motis_trip_id": "20250722_20:10_zpcg_237", "timestamp": 12345}
82+
{"position": {"lat": 43.58199, "lon": 19.52472}, "motis_trip_id": "20250722_20:10_me-zpcg_237", "timestamp": 12345}
8483
</code>
8584
</p>
85+
86+
<code>POST /api/v1/check_wanted</code><br />
87+
Example body:<br />
88+
<code>
89+
{"motis_trip_id": "20250722_20:10_me-zpcg_237"}
90+
</code>
91+
8692
<p>
8793
<code>GET /gtfsrt/{feed}/trip-updates.pb</code>
8894
</p>

0 commit comments

Comments
 (0)