Skip to content

Commit

Permalink
fix: ovh domains (#2236)
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 authored Mar 22, 2024
1 parent ba6225c commit 2f99849
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/review-auto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
uses: socialgouv/kontinuous/.github/actions/env@v1
- name: Set env
run: |
echo "SITE_URL=https://${{ steps.env.outputs.subdomain }}.dev.fabrique.social.gouv.fr" >> $GITHUB_ENV
echo "SITE_URL=https://${{ steps.env.outputs.subdomain }}.ovh.fabrique.social.gouv.fr" >> $GITHUB_ENV
echo "$SITE_URL"
- name: Cypress run
uses: cypress-io/github-action@v5
with:
install: false
working-directory: ./packages/app
config: "pageLoadTimeout=100000,baseUrl=${{ env.SITE_URL }}"
wait-on: "${{ env.SITE_URL }}"
wait-on: "${{ env.SITE_URL }}"
2 changes: 1 addition & 1 deletion .github/workflows/review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: socialgouv/kontinuous/.github/actions/env@v1
- name: Set env
run: |
echo "SITE_URL=https://${{ steps.env.outputs.subdomain }}.dev.fabrique.social.gouv.fr" >> $GITHUB_ENV
echo "SITE_URL=https://${{ steps.env.outputs.subdomain }}.ovh.fabrique.social.gouv.fr" >> $GITHUB_ENV
echo "$SITE_URL"
- name: Cypress run
uses: cypress-io/github-action@v5
Expand Down
11 changes: 3 additions & 8 deletions .kontinuous/env/dev/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
api:
~needs: [build-api,create-db]
~needs: [build-api]
vars:
EGAPRO_SEND_EMAILS: "True"
EGAPRO_SMTP_HOST: maildev
Expand All @@ -9,17 +9,12 @@ api:
EGAPRO_SMTP_SSL: ""

app:
~needs: [build-app, create-db]
~needs: [build-app]
vars:
MAILER_ENABLE: "True"
MAILER_SMTP_HOST: maildev
MAILER_SMTP_PORT: "1025"
MAILER_SMTP_SSL: "False"

maildev: {}
pgweb: {}

jobs:
runs:
create-db:
use: create-db
pgweb: {}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Prod : <https://egapro.travail.gouv.fr/>

Préprod : <https://egapro-preprod.dev.fabrique.social.gouv.fr/>
Préprod : <https://egapro-preprod.ovh.fabrique.social.gouv.fr/>

## Installer

Expand Down Expand Up @@ -84,9 +84,9 @@ yarn workspaces run lint

Ajouter le préfixe `maildev-` devant l'URL.

Si l'environnement est `https://egapro-feat-limit-char-11oson.dev.fabrique.social.gouv.fr/`.
Si l'environnement est `https://egapro-feat-limit-char-11oson.ovh.fabrique.social.gouv.fr/`.

Le maildev se trouvera alors à `https://maildev-egapro-feat-limit-char-11oson.dev.fabrique.social.gouv.fr/`
Le maildev se trouvera alors à `https://maildev-egapro-feat-limit-char-11oson.ovh.fabrique.social.gouv.fr/`

## Fichiers

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ services:
oauth2-proxy-github:
image: bitnami/oauth2-proxy
command:
# - --redirect-url=https://oauth-egapro.preprod.dev.fabrique.social.gouv.fr/callback
# - --redirect-url=https://oauth-egapro.preprod.ovh.fabrique.social.gouv.fr/callback
- --redirect-url=http://localhost:4180/oauth2/callback
- --upstream=file:///dev/null
- --whitelist-domain=.dev.fabrique.social.gouv.fr
- --whitelist-domain=.ovh.fabrique.social.gouv.fr
- --whitelist-domain=localhost:3000
ports:
- 4180:4180
Expand Down
2 changes: 1 addition & 1 deletion packages/api/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Où `siren` est le numéro de siren de l'entreprise ou UES déclarant, et `year`

Pour aller voir les mails envoyés par le serveur de dev:

https://mailtrap.dev.egapro.fabrique.social.gouv.fr/
https://mailtrap.ovh.egapro.fabrique.social.gouv.fr/

(Demander un accès.)

Expand Down
2 changes: 1 addition & 1 deletion packages/app/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ SECURITY_MONCOMPTEPRO_CLIENT_SECRET=""
SECURITY_MONCOMPTEPRO_TEST=true
SECURITY_GITHUB_CLIENT_ID=
SECURITY_GITHUB_CLIENT_SECRET=
SECURITY_CHARON_URL="https://egapro-charon.dev.fabrique.social.gouv.fr"
SECURITY_CHARON_URL="https://egapro-charon.ovh.fabrique.social.gouv.fr"

## Sentry
# old EGAPRO_SENTRY_DSN
Expand Down
2 changes: 1 addition & 1 deletion packages/app/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ SECURITY_ALLOWED_IPS=""
SECURITY_MONCOMPTEPRO_TEST=false
SECURITY_GITHUB_CLIENT_ID=
SECURITY_GITHUB_CLIENT_SECRET=
SECURITY_CHARON_URL="https://egapro-charon.dev.fabrique.social.gouv.fr"
SECURITY_CHARON_URL="https://egapro-charon.ovh.fabrique.social.gouv.fr"

## Sentry
# old EGAPRO_SENTRY_DSN
Expand Down
4 changes: 2 additions & 2 deletions packages/app/.env.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NEXT_PUBLIC_API_URL=https://egapro-preprod.dev.fabrique.social.gouv.fr/api
NEXT_PUBLIC_API_V2_URL=https://egapro-preprod.dev.fabrique.social.gouv.fr/apiv2
NEXT_PUBLIC_API_URL=https://egapro-preprod.ovh.fabrique.social.gouv.fr/api
NEXT_PUBLIC_API_V2_URL=https://egapro-preprod.ovh.fabrique.social.gouv.fr/apiv2
NEXT_PUBLIC_MATOMO_URL="<dev>"
NEXT_PUBLIC_MATOMO_SITE_ID="<dev>"
## MAILER service
Expand Down
4 changes: 2 additions & 2 deletions packages/app/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ declare namespace NodeJS {
*/
SECURITY_GITHUB_CLIENT_SECRET?: string;
/**
* Dist: `https://egapro-charon.dev.fabrique.social.gouv.fr`
* Dist: `https://egapro-charon.ovh.fabrique.social.gouv.fr`
* {@link [Local Env Dist](.env.development)}
*/
SECURITY_CHARON_URL?: string;
Expand Down Expand Up @@ -268,4 +268,4 @@ declare type ProcessEnvCustomKeys =
| 'SECURITY_GITHUB_CLIENT_SECRET'
| 'SECURITY_CHARON_URL'
| 'SENTRY_DSN'
| 'SENTRY_ENVIRONMENT';
| 'SENTRY_ENVIRONMENT';
2 changes: 1 addition & 1 deletion packages/app/src/common/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const config = {
staffRoutes: ["/admin/liste-referents", "/admin/impersonate"],
charonUrl: ensureApiEnvVar(
process.env.SECURITY_CHARON_URL,
"https://egapro-charon.dev.fabrique.social.gouv.fr",
"https://egapro-charon.ovh.fabrique.social.gouv.fr",
),
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/simulateur/.env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ PUBLIC_URL=""
REACT_APP_GITHUB_SHA=
REACT_APP_NAME=$npm_package_name
# REACT_APP_DECLARATION_URL="http://localhost:4000/"
REACT_APP_EGAPRO_API_URL="https://egapro-preprod.dev.fabrique.social.gouv.fr/api"
REACT_APP_EGAPRO_API_URL="https://egapro-preprod.ovh.fabrique.social.gouv.fr/api"
REACT_APP_EGAPRO_APIV2_URL="http://localhost:3000/apiv2"
REACT_APP_SENTRY_DSN=""
2 changes: 1 addition & 1 deletion packages/simulateur/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ COPY packages/simulateur/tsconfig.json ./packages/simulateur/
COPY packages/simulateur/.eslintrc.js ./packages/simulateur/
COPY packages/simulateur/src ./packages/simulateur/src

ARG REACT_APP_EGAPRO_API_URL=https://egapro-preprod.dev.fabrique.social.gouv.fr/api
ARG REACT_APP_EGAPRO_API_URL=https://egapro-preprod.ovh.fabrique.social.gouv.fr/api
ENV REACT_APP_EGAPRO_API_URL=$REACT_APP_EGAPRO_API_URL

ARG REACT_APP_DECLARATION_URL="/index-egapro/declaration/"
Expand Down

0 comments on commit 2f99849

Please sign in to comment.