File tree Expand file tree Collapse file tree 4 files changed +18
-35
lines changed Expand file tree Collapse file tree 4 files changed +18
-35
lines changed 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
-
11
7
upstream pomelo_identity_server {
12
8
server 127.0.0.1:3003;
13
9
}
72
68
proxy_set_header X-Forwarded-Proto $scheme ;
73
69
}
74
70
75
- location ~* /(uploads|languages)/(.*) {
71
+ location ~* /(uploads|languages|themes|plugins )/(.*) {
76
72
proxy_read_timeout 90 ;
77
73
proxy_connect_timeout 90 ;
78
74
proxy_redirect off ;
79
- proxy_pass http://pomelo_infrastructure_bff /$1 /$2$is_args$args ;
75
+ proxy_pass http://pomelo_static_content /$1 /$2$is_args$args ;
80
76
81
77
proxy_set_header Host $http_host ;
82
78
proxy_set_header X-Real-IP $remote_addr ;
98
94
proxy_set_header X-Forwarded-Proto $scheme ;
99
95
}
100
96
101
- location /resources/ {
102
- proxy_read_timeout 90 ;
103
- proxy_connect_timeout 90 ;
104
- proxy_redirect off ;
105
- proxy_pass http://pomelo_static_content/;
106
-
107
- proxy_set_header Host $http_host ;
108
- proxy_set_header X-Real-IP $remote_addr ;
109
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
110
- proxy_set_header X-Forwarded-Proto $scheme ;
111
- }
112
-
113
97
# common error page config
114
98
error_page 500 502 503 504 /50x.html;
115
99
location = /50x.html {
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ consumers:
4
4
key-auth :
5
5
key : pomelo-oidc
6
6
openid-connect :
7
- bearer_only : true
8
7
# set client metadata
9
8
# client_id: CLIENT_ID
10
9
# client_secret: CLIENT_SECRET
Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ graphql:
16
16
# - "*"
17
17
# credentials: true
18
18
# upload configuration
19
- upload :
20
- # upload path
21
- dest : " uploads "
22
- # upload file size limit, a byte number,
23
- # or string(https://github.com/visionmedia/bytes.js), default: 10MB
24
- maxFileSize : 1000000
25
- # upload file count limit, default: 10
26
- maxFiles : 10
19
+ # upload:
20
+ # # upload path
21
+ # dest: "./content "
22
+ # # upload file size limit, a byte number,
23
+ # # or string(https://github.com/visionmedia/bytes.js), default: 10MB
24
+ # maxFileSize: 1000000
25
+ # # upload file count limit, default: 10
26
+ # maxFiles: 10
27
27
# redis connection, from fly secrets
28
28
# REDIS_URL: "redis://host:port/db"
29
29
# infrastructure database connection, from fly secrets
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ graphql:
21
21
# - "https://example.com:3000"
22
22
# credentials: true
23
23
# upload configuration
24
- upload :
25
- # upload path
26
- dest : " uploads "
27
- # upload file size limit, a byte number,
28
- # or string(https://github.com/visionmedia/bytes.js), default: 10MB
29
- maxFileSize : 1000000
30
- # upload file count limit, default: 10
31
- maxFiles : 10
24
+ # upload:
25
+ # # upload path
26
+ # dest: "./content "
27
+ # # upload file size limit, a byte number,
28
+ # # or string(https://github.com/visionmedia/bytes.js), default: 10MB
29
+ # maxFileSize: 1000000
30
+ # # upload file count limit, default: 10
31
+ # maxFiles: 10
32
32
# # redis connection string
33
33
# # redis[s] :// [[username :] password@] host [:port][/database]
34
34
# # [?[timeout=timeout[d|h|m|s|ms|us|ns]] [&clientName=clientName]
You can’t perform that action at this time.
0 commit comments