File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ services:
27
27
- REDIS_URL=${REDIS_URL:-redis://host:port/db}
28
28
- INFRASTRUCTURE_DATABASE_CONNECTION=${INFRASTRUCTURE_DATABASE_CONNECTION:-mysql://user:password@host:port/database}
29
29
- IDENTITY_DATABASE_CONNECTION=${IDENTITY_DATABASE_CONNECTION:-mysql://user:password@host:port/database}
30
+ - TABLE_PREFIX=${TABLE_PREFIX:-po_}
30
31
volumes :
31
32
- ${PWD}/conf:/app/conf
32
33
- ${PWD}/uploads:/app/content/uploads
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ services:
46
46
- REDIS_URL=${REDIS_URL:-redis://host:port/db}
47
47
- INFRASTRUCTURE_DATABASE_CONNECTION=${INFRASTRUCTURE_DATABASE_CONNECTION:-mysql://user:password@host:port/database}
48
48
- IDENTITY_DATABASE_CONNECTION=${IDENTITY_DATABASE_CONNECTION:-mysql://user:password@host:port/database}
49
+ - TABLE_PREFIX=${TABLE_PREFIX:-po_}
49
50
volumes :
50
51
- conf:/app/conf
51
52
- ${PWD}/uploads:/app/content/uploads
Original file line number Diff line number Diff line change 4
4
server 127.0.0.1:9080;
5
5
}
6
6
7
+ upstream pomelo_infrastructure_bff {
8
+ server 127.0.0.1:3002;
9
+ }
10
+
7
11
upstream pomelo_identity_server {
8
12
server 127.0.0.1:3003;
9
13
}
56
60
proxy_set_header X-Forwarded-Proto $scheme ;
57
61
}
58
62
59
- location ~* /( action/uploads|languages)/(.*) {
63
+ location / action/ {
60
64
proxy_read_timeout 90 ;
61
65
proxy_connect_timeout 90 ;
62
66
proxy_redirect off ;
66
70
proxy_set_header X-Real-IP $remote_addr ;
67
71
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
68
72
proxy_set_header X-Forwarded-Proto $scheme ;
73
+ }
74
+
75
+ location ~* /(uploads|languages)/(.*) {
76
+ proxy_read_timeout 90 ;
77
+ proxy_connect_timeout 90 ;
78
+ proxy_redirect off ;
79
+ proxy_pass http://pomelo_infrastructure_bff/$1 /$2$is_args$args ;
80
+
81
+ proxy_set_header Host $http_host ;
82
+ proxy_set_header X-Real-IP $remote_addr ;
83
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
84
+ proxy_set_header X-Forwarded-Proto $scheme ;
69
85
70
86
client_max_body_size 100M ;
71
87
}
You can’t perform that action at this time.
0 commit comments