You've already forked DataMate
@@ -9,29 +9,8 @@ server {
|
||||
|
||||
add_header Set-Cookie "NEXT_LOCALE=zh";
|
||||
|
||||
location /api/synthesis/ {
|
||||
proxy_pass http://datamate-backend-python:18000/api/synthesis/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /api/annotation/ {
|
||||
proxy_pass http://datamate-backend-python:18000/api/annotation/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /api/evaluation/ {
|
||||
proxy_pass http://datamate-backend-python:18000/api/evaluation/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://datamate-backend:8080/api/;
|
||||
proxy_pass http://datamate-gateway:8080/api/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
@@ -7,29 +7,8 @@ server {
|
||||
|
||||
client_max_body_size 1024M;
|
||||
|
||||
location /api/synthesis/ {
|
||||
proxy_pass http://datamate-backend-python:18000/api/synthesis/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /api/evaluation/ {
|
||||
proxy_pass http://datamate-backend-python:18000/api/evaluation/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /api/annotation/ {
|
||||
proxy_pass http://datamate-backend-python:18000/api/annotation/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://datamate-backend:8080/api/;
|
||||
proxy_pass http://datamate-gateway:8080/api/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
@@ -31,6 +31,13 @@ services:
|
||||
depends_on:
|
||||
- datamate-database
|
||||
|
||||
datamate-gateway:
|
||||
container_name: datamate-gateway
|
||||
image: ${REGISTRY:-}datamate-gateway
|
||||
restart: on-failure
|
||||
privileged: true
|
||||
networks: [ datamate ]
|
||||
|
||||
# 2) frontend(NodePort 30000)
|
||||
datamate-frontend:
|
||||
container_name: datamate-frontend
|
||||
|
||||
Reference in New Issue
Block a user