Skip to content

Commit 2c195e6

Browse files
committed
Copying Upsun config into platformsh config
1 parent c8bdfbc commit 2c195e6

File tree

3 files changed

+18
-61
lines changed

3 files changed

+18
-61
lines changed

.platform/applications.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
composer/composer: "^2"
1818

1919
# The type of the application to build.
20-
type: php:8.1
20+
type: php:8.3
2121
build:
2222
flavor: composer
2323

@@ -45,6 +45,9 @@
4545
root: "public"
4646
# The front-controller script to send non-static requests to.
4747
passthru: "/index.php"
48+
rules:
49+
'^/api/bundles/(?<resourceName>.*)$':
50+
passthru: '/bundles/$resourceName'
4851

4952
# The size of the persistent disk of the application (in MB).
5053
disk: 2048
@@ -78,6 +81,11 @@
7881
# The runtime the application uses.
7982
# Complete list of available runtimes: https://docs.platform.sh/create-apps/app-reference.html#types
8083
type: 'nodejs:18'
84+
85+
variables:
86+
env:
87+
NEXT_PUBLIC_API_ROUTE_PREFIX: 'api'
88+
NEXT_PUBLIC_API_URL: 'https://upsun-deployment-config-3xlvpkq-kxux3rltbhsgo.fr-3.platformsh.site/api'
8189

8290
# The size of the persistent disk of the application (in MB). Minimum value is 128.
8391
disk: 2048

.platform/routes.yaml

Lines changed: 4 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1+
# Route / to default React App.
12
https://{default}/:
2-
cache:
3-
enabled: false
4-
ssi:
5-
enabled: false
6-
type: upstream
7-
upstream: api:http
8-
9-
https://{default}/admin:
103
cache:
114
cookies:
125
- '*'
@@ -20,58 +13,11 @@ https://{default}/admin:
2013
type: upstream
2114
upstream: admin:http
2215

23-
https://{default}/login:
16+
# Route /api to Api platform app.
17+
https://{default}/api:
2418
cache:
25-
cookies:
26-
- '*'
27-
default_ttl: 0
28-
enabled: true
29-
headers:
30-
- Accept
31-
- Accept-Language
32-
ssi:
3319
enabled: false
34-
type: upstream
35-
upstream: admin:http
36-
37-
https://{default}/_next:
38-
cache:
39-
cookies:
40-
- '*'
41-
default_ttl: 0
42-
enabled: true
43-
headers:
44-
- Accept
45-
- Accept-Language
4620
ssi:
4721
enabled: false
4822
type: upstream
49-
upstream: admin:http
50-
51-
https://{default}/locales:
52-
cache:
53-
cookies:
54-
- '*'
55-
default_ttl: 0
56-
enabled: true
57-
headers:
58-
- Accept
59-
- Accept-Language
60-
ssi:
61-
enabled: false
62-
type: upstream
63-
upstream: admin:http
64-
65-
https://{default}/images:
66-
cache:
67-
cookies:
68-
- '*'
69-
default_ttl: 0
70-
enabled: true
71-
headers:
72-
- Accept
73-
- Accept-Language
74-
ssi:
75-
enabled: false
76-
type: upstream
77-
upstream: admin:http
23+
upstream: api:http

.platform/services.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
postgresql:
2-
type: postgresql:13
2+
type: postgresql:15
33
disk: 256
44

55
opensearch:
@@ -9,7 +9,10 @@ opensearch:
99
plugins:
1010
- analysis-icu
1111
- analysis-phonetic
12+
- opensearch-ml-plugin
13+
- neural-search
14+
- opensearch-knn
1215

1316
redis:
14-
type: redis-persistent:6.2
17+
type: redis-persistent:7.0
1518
disk: 256

0 commit comments

Comments
 (0)