Skip to content

Commit b6eee3d

Browse files
committed
refactor: change the hostname of the local backed server
1 parent 7ce728b commit b6eee3d

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
lines changed

.env.ci-tests

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ APP_NAME=TalentPulse
22
APP_ENV=testing
33
APP_KEY=base64:xc00huj08Ru0P59Os7q/ceqOlcjasFfugAMWs0L0pDM=
44
APP_DEBUG=true
5-
APP_URL=https://api.talentpulse.localhost
5+
APP_URL=https://talentpulse-backend.localhost
66

77
LOG_CHANNEL=stack
88
LOG_DEPRECATIONS_CHANNEL=null

.env.local

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ APP_NAME=TalentPulse
22
APP_ENV=local
33
APP_KEY=base64:8BYu1rJ3szeYnG8a/JmkjwU4NzzETf9f8wX9cq18T+c=
44
APP_DEBUG=true
5-
APP_URL=https://api.talentpulse.localhost
5+
APP_URL=https://talentpulse-backend.localhost
66

77
LOG_CHANNEL=stack
88
LOG_DEPRECATIONS_CHANNEL=null
@@ -38,8 +38,8 @@ MAIL_FROM_ADDRESS="[email protected]"
3838
MAIL_FROM_NAME="${APP_NAME}"
3939

4040
# SAML
41-
SAML2_SP_ENTITYID=https://api.talentpulse.localhost/auth/methods/saml2-sp/metadata
42-
SAML2_LOGIN_URL=https://talentpulse.localhost/dashboard
41+
SAML2_SP_ENTITYID=https://talentpulse-backend.localhost/auth/methods/saml2-sp/metadata
42+
SAML2_LOGIN_URL=https://talentpulse.localhost/app/dashboard
4343
SAML2_LOGOUT_URL=https://talentpulse.localhost
4444
SAML2_SP_CERT_X509=MIIDazCCAlOgAwIBAgIUK/oTTlFW/C7Vm2C6sdjWA7+HDc4wDQYJKoZIhvcNAQELBQAwRTELMAkGA1UEBhMCbmwxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMzEyMDQxOTE4MDFaF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7o+hGECB7L3kf59EQI2JHpMlMW1W9to52peMM6CHSPV+aJshjqrMHfPvlqV1hnusI4R7N6qq/Y3VYdQF8pSIT6j6NDtqDh3E4evuqCMNlDCarqLrmsVTrgDZBycFp/VqAS9QKBgH8oxOs536lUIE87CrFzW8veNzBVzkNr5mEpKTgHGLax1U7ulPhVSYl+XiBkZkGNzmMMfRpryV2g4yRP69e6mDH24FhqDV57OZjP5v7IwoeKUrI1fQ8v3Zkc6PBkZFOElttn1Ne4fadeN60B7ItBDqAZVuXlrhb7AkLQym17qd/LAoGAQr/pw9Z2V6gSes06c8j8cKAQDr6FkCtMjnKQnUO/JtQ2lfzQwycRNTwUTUByi6R/ynWMGel/JElcmBC4r98R2jefRMBCCBJIsDEaFmst+bgGcDd8A32wkaAAKLtRc5FKrHml7Itliv5BWpjOr82nqaD92zMWX/ddLtX3ZvYSAb4=

app/App/Shared/Providers/RouteServiceProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
title: 'TalentPulse API',
1818
)]
1919
#[OA\Server(
20-
url: 'https://api.talentpulse.localhost',
20+
url: 'https://talentpulse-backend.localhost',
2121
description: 'Local Development',
2222
)]
2323
#[OA\Components(
@@ -100,7 +100,7 @@ public function boot(): void
100100

101101
$this->routes(function () use ($configRepository) {
102102
Route::middleware('api')
103-
->domain($configRepository->get('app.domain'))
103+
// ->domain($configRepository->get('app.domain'))
104104
->group(base_path('routes/api.php'));
105105

106106
Route::middleware('web')

docker-compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ services:
3232
labels:
3333
- "traefik.enable=true"
3434
- "traefik.docker.network=traefik-gateway"
35-
- "traefik.http.routers.talentpulse-backend-nginx.rule=Host(`api.talentpulse.localhost`)"
35+
- "traefik.http.routers.talentpulse-backend-nginx.rule=Host(`talentpulse-backend.localhost`)"
3636
- "traefik.http.routers.talentpulse-backend-nginx.priority=1"
3737
- "traefik.http.routers.talentpulse-backend-nginx.entrypoints=https"
3838
- "traefik.http.routers.talentpulse-backend-nginx.tls=true"
@@ -56,8 +56,8 @@ services:
5656
image: kenchan0130/simplesamlphp
5757
environment:
5858
SIMPLESAMLPHP_SP_ENTITY_ID: https://talentpulse.localhost
59-
SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE: https://api.talentpulse.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs
60-
SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE: https://api.talentpulse.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/logout
59+
SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE: https://talentpulse-backend.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs
60+
SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE: https://talentpulse-backend.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/logout
6161
volumes:
6262
- ./docker/simplesaml/fontys-hogeschool/config/authsources.php:/var/www/simplesamlphp/config/authsources.php
6363
- ./docker/simplesaml/fontys-hogeschool/metadata/saml20-sp-remote.php:/var/www/simplesamlphp/metadata/saml20-sp-remote.php

docker/simplesaml/fontys-hogeschool/metadata/saml20-idp-remote.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,29 @@
1111
'AssertionConsumerService' => [
1212
[
1313
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
14-
'Location' => 'https://api.talentpulse.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs/',
14+
'Location' => 'https://talentpulse-backend.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs/',
1515
'index' => 0,
1616
'isDefault' => true,
1717
],
1818
[
1919
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact',
20-
'Location' => 'https://api.talentpulse.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs/',
20+
'Location' => 'https://talentpulse-backend.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs/',
2121
'index' => 1,
2222
],
2323
[
2424
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
25-
'Location' => 'https://api.talentpulse.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/sls/',
25+
'Location' => 'https://talentpulse-backend.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/sls/',
2626
'index' => 2,
2727
],
2828
],
2929
'SingleLogoutService' => [
3030
[
3131
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
32-
'Location' => 'https://api.talentpulse.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/sls/',
32+
'Location' => 'https://talentpulse-backend.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/sls/',
3333
],
3434
[
3535
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
36-
'Location' => 'https://api.talentpulse.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs/',
36+
'Location' => 'https://talentpulse-backend.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs/',
3737
],
3838
],
3939
'NameIDFormat' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',

docker/simplesaml/fontys-hogeschool/metadata/saml20-sp-remote.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
$metadata['https://api.talentpulse.localhost/auth/methods/saml2-sp/metadata'] = [
4-
'entityid' => 'https://api.talentpulse.localhost/auth/methods/saml2-sp/metadata',
3+
$metadata['https://talentpulse-backend.localhost/auth/methods/saml2-sp/metadata'] = [
4+
'entityid' => 'https://talentpulse-backend.localhost/auth/methods/saml2-sp/metadata',
55
'contacts' => [
66
[
77
'contactType' => 'support',
@@ -11,29 +11,29 @@
1111
'AssertionConsumerService' => [
1212
[
1313
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
14-
'Location' => 'https://api.talentpulse.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs/',
14+
'Location' => 'https://talentpulse-backend.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs/',
1515
'index' => 0,
1616
'isDefault' => true,
1717
],
1818
[
1919
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact',
20-
'Location' => 'https://api.talentpulse.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs/',
20+
'Location' => 'https://talentpulse-backend.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs/',
2121
'index' => 1,
2222
],
2323
[
2424
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
25-
'Location' => 'https://api.talentpulse.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/sls/',
25+
'Location' => 'https://talentpulse-backend.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/sls/',
2626
'index' => 2,
2727
],
2828
],
2929
'SingleLogoutService' => [
3030
[
3131
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
32-
'Location' => 'https://api.talentpulse.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/sls/',
32+
'Location' => 'https://talentpulse-backend.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/sls/',
3333
],
3434
[
3535
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
36-
'Location' => 'https://api.talentpulse.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs/',
36+
'Location' => 'https://talentpulse-backend.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs/',
3737
],
3838
],
3939
'NameIDFormat' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',

openapi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ info:
44
version: '0.1'
55
servers:
66
-
7-
url: 'https://api.talentpulse.localhost'
7+
url: 'https://talentpulse-backend.localhost'
88
description: 'Local Development'
99
paths:
1010
/auth/current-user:

0 commit comments

Comments
 (0)