Skip to content

Commit

Permalink
Tentative avec le bundle symfony-oidc
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrelemee committed Jan 15, 2025
1 parent 5e1f008 commit ce26c3e
Show file tree
Hide file tree
Showing 19 changed files with 712 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ server {
http2 on;

# SSL
ssl_certificate /etc/nginx/certs/precontentieux.anje-justice.dev.pem;
ssl_certificate_key /etc/nginx/certs/precontentieux.anje-justice.dev-key.pem;
ssl_certificate /etc/nginx/certs/mon-indemnisation.anje-justice.dev.pem;
ssl_certificate_key /etc/nginx/certs/mon-indemnisation.anje-justice.dev-key.pem;
ssl_trusted_certificate /etc/nginx/certs/rootCA.pem;

server_name precontentieux.anje-justice.dev;
server_name mon-indemnisation.anje-justice.dev;
root /app/public;

error_log /var/log/nginx/precontentieux.anje-justice.dev.error.log;
access_log /var/log/nginx/precontentieux.anje-justice.dev.access.log;
error_log /var/log/nginx/mon-indemnisation.anje-justice.dev.error.log;
access_log /var/log/nginx/mon-indemnisation.anje-justice.dev.access.log;

location ~ /preview {
try_files $uri @vite;
Expand Down Expand Up @@ -64,9 +64,9 @@ server {
listen 80;
listen [::]:80;

server_name precontentieux.anje-justice.dev;
server_name mon-indemnisation.anje-justice.dev;

location / {
return 301 https://precontentieux.anje-justice.dev/$request_uri;
return 301 https://mon-indemnisation.anje-justice.dev/$request_uri;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ server {
http2 on;

# SSL
ssl_certificate /etc/nginx/certs/precontentieux.anje-justice.test.pem;
ssl_certificate_key /etc/nginx/certs/precontentieux.anje-justice.test-key.pem;
ssl_certificate /etc/nginx/certs/mon-indemnisation.anje-justice.test.pem;
ssl_certificate_key /etc/nginx/certs/mon-indemnisation.anje-justice.test-key.pem;
ssl_trusted_certificate /etc/nginx/certs/rootCA.pem;

server_name precontentieux.anje-justice.test;
server_name mon-indemnisation.anje-justice.test;
root /app/public;

error_log /var/log/nginx/precontentieux.anje-justice.test.error.log;
access_log /var/log/nginx/precontentieux.anje-justice.test.access.log;
error_log /var/log/nginx/mon-indemnisation.anje-justice.test.error.log;
access_log /var/log/nginx/mon-indemnisation.anje-justice.test.access.log;

location / {
try_files $uri @symfony;
Expand Down Expand Up @@ -40,9 +40,9 @@ server {
listen 80;
listen [::]:80;

server_name precontentieux.anje-justice.test;
server_name mon-indemnisation.anje-justice.test;

location / {
return 301 https://precontentieux.anje-justice.test/$request_uri;
return 301 https://mon-indemnisation.anje-justice.test/$request_uri;
}
}
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

###> drenso/symfony-oidc-bundle ###
OIDC_WELL_KNOWN_URL="Enter the .well-known url for the OIDC provider"
OIDC_CLIENT_ID="Enter your OIDC client id"
OIDC_CLIENT_SECRET="Enter your OIDC client secret"
###< drenso/symfony-oidc-bundle ###
13 changes: 9 additions & 4 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ APP_DEBUG=1
APP_SECRET=changeme


PRECONTENTIEUX_COURRIEL_EQUIPE=equipe@on-indemnisation.anje-justice.fr
PRECONTENTIEUX_COURRIEL_EQUIPE=equipe@mon-indemnisation.anje-justice.dev

###> doctrine/doctrine-bundle ###
DATABASE_URL="pgsql://precondev:precondev@postgres:5432/precondev?serverVersion=15&charset=utf8"
###< doctrine/doctrine-bundle ###

###> donnée de configuration de l'application ###
BASE_URL=https://mon-indemnisation.anje-justice.fr
BASE_URL=https://mon-indemnisation.anje-justice.dev
###< donnée de configuration de l'application ###

###> symfony/mailer ###
Expand All @@ -24,7 +24,7 @@ CORS_ALLOW_ORIGIN=*
###< nelmio/cors-bundle ###

###> app ###
EMAIL_FROM=ne-pas-repondre@mon-indemnisation.anje-justice.fr
EMAIL_FROM=ne-pas-repondre@mon-indemnisation.anje-justice.dev
EMAIL_FROM_LABEL="Précontentieux "

###< app ###
Expand All @@ -38,4 +38,9 @@ SCW_DEFAULT_ORGANIZATION_ID=changeme
SCW_DEFAULT_PROJECT_ID=changeme

# Uniquement requis en environnement de test
MAILPIT_URL=http://mailpit:8025
MAILPIT_URL=http://mailpit:8025
###> drenso/symfony-oidc-bundle ###
OIDC_WELL_KNOWN_URL="Enter the .well-known url for the OIDC provider"
OIDC_CLIENT_ID="Enter your OIDC client id"
OIDC_CLIENT_SECRET="Enter your OIDC client secret"
###< drenso/symfony-oidc-bundle ###
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"doctrine/doctrine-bundle": "^2.12",
"doctrine/doctrine-migrations-bundle": "^3.3",
"doctrine/orm": "^3.1",
"drenso/symfony-oidc-bundle": "^3.5",
"firebase/php-jwt": "^6.10",
"guzzlehttp/guzzle": "^7.9",
"knplabs/knp-snappy-bundle": "^1.10",
"league/flysystem-async-aws-s3": "^3.29",
Expand Down
Loading

0 comments on commit ce26c3e

Please sign in to comment.