瀏覽代碼

wrong port

adri 2 月之前
父節點
當前提交
823ba8d566
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Dockerfile
  2. 1 1
      app.py

+ 1 - 1
Dockerfile

@@ -3,4 +3,4 @@ RUN pip install flask requests
 COPY . /app
 WORKDIR /app
 EXPOSE 9000
-CMD ["python", "app.py"]   
+CMD ["python", "app.py"]

+ 1 - 1
app.py

@@ -15,7 +15,7 @@ def forward_get_as_post():
         del data["key"]
 
     # Forward as POST request with JSON body
-    target_url = f"http://reitti:8888/api/v1/ingest/owntracks?{urlencode(api_key_q)}"
+    target_url = f"http://reitti:8080/api/v1/ingest/owntracks?{urlencode(api_key_q)}"
     response = requests.post(target_url, json=data)
 
     return jsonify(