Skip to content

Commit fd86e7d

Browse files
authored
Merge pull request #1 from starpep-web/bugfix/december-2024
Added internal secret to env.
2 parents 9ccb1d6 + 60c67dd commit fd86e7d

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.env.example

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ DOMAIN_FILES_SERVER=
77
DOMAIN_CMS=
88
DOMAIN_WEB=
99

10+
SHARED_INTERNAL_SECRET=
11+
1012
ASSETS_FILES_LOCATION=
1113
ASSETS_TEMP_ARTIFACTS_LOCATION=
1214

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ DOMAIN_FILES_SERVER=
3434
DOMAIN_CMS=
3535
DOMAIN_WEB=
3636
37+
SHARED_INTERNAL_SECRET=
38+
3739
ASSETS_FILES_LOCATION=
3840
ASSETS_TEMP_ARTIFACTS_LOCATION=
3941
@@ -57,6 +59,7 @@ WEB_CMS_URL=
5759
| `DOMAIN_FILES_SERVER` | The domain from which the `static-file-server` service is accessible from. | `dl.starpepweb.org` |
5860
| `DOMAIN_CMS` | The domain from which the Strapi CMS is accessible from. | `cms.starpepweb.org` |
5961
| `DOMAIN_WEB` | The domain from which the main application is accessible from. | `starpepweb.org` |
62+
| `SHARED_INTERNAL_SECRET` | A secret value set by you to be used as a secret for internal messaging between services. | `SOME_SECRET_VALUE` |
6063
| `ASSETS_FILES_LOCATION` | The absolute path in the host machine where the [assets](https://github.com/starpep-web/assets) are located. | `/home/user/assets/files` |
6164
| `ASSETS_TEMP_ARTIFACTS_LOCATION` | The absolute path in the host machine where the artifacts (for example, search exports) are located. | `/home/user/assets/artifacts` |
6265
| `CMS_APP_KEYS` | The app keys used by Strapi. You can make up these secrets yourself. | `"toBeModified1,toBeModified2"` |

docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ services:
137137
NEXT_PUBLIC_URL: ${WEB_PUBLIC_URL}
138138
NEXT_PUBLIC_DOWNLOADS_URL: ${WEB_PUBLIC_ASSETS_URL}
139139
NEXT_REVALIDATE_TIME: 3600
140+
NEXT_INTERNAL_AUTH_SECRET: ${SHARED_INTERNAL_SECRET}
140141
STRAPI_API_TOKEN: ${WEB_CMS_TOKEN}
141142
NEXT_PUBLIC_STRAPI_URL: ${WEB_CMS_URL}
142143
labels:

0 commit comments

Comments
 (0)