Skip to content

Commit 13bcec0

Browse files
authored
Modified Laravel Configuration
admin_pages_dev: Modified Laravel Configurations
2 parents f9e542b + 5d5ad09 commit 13bcec0

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

.github/workflows/stacksDockerDeployProduction.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
working-directory: amp-laravel
2424
run: |
2525
echo "APP_KEY=${{ secrets.LARAVEL_APP_KEY }}" > .env.example
26+
echo "APP_URL=http://${{ secrets.EC2_HOST_STAGING }}:8000" > .env.example
2627
echo "DB_CONNECTION=mysql" >> .env.example
2728
echo "DB_HOST=${{ secrets.LARAVEL_DATABASE_HOST }}" >> .env.example
2829
echo "DB_PORT=${{ secrets.LARAVEL_DATABASE_PORT_NUMBER }}" >> .env.example

.github/workflows/stacksDockerDeployStaging.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
working-directory: amp-laravel
2424
run: |
2525
echo "APP_KEY=${{ secrets.LARAVEL_APP_KEY }}" > .env.example
26+
echo "APP_URL=http://${{ secrets.EC2_HOST_STAGING }}:8000" > .env.example
2627
echo "DB_CONNECTION=mysql" >> .env.example
2728
echo "DB_HOST=${{ secrets.LARAVEL_DATABASE_HOST }}" >> .env.example
2829
echo "DB_PORT=${{ secrets.LARAVEL_DATABASE_PORT_NUMBER }}" >> .env.example

amp-laravel/.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
APP_URL=${LARAVEL_APP_URL}
2+
13
APP_KEY=${LARAVEL_APP_KEY}
24

35
DB_CONNECTION=mysql

amp-laravel/config/cors.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
return [
4+
5+
'paths' => ['api/*', 'sanctum/csrf-cookie'],
6+
7+
'allowed_methods' => ['*'],
8+
9+
'allowed_origins' => [
10+
'http://fse-final-riyad.s3-website.eu-west-3.amazonaws.com',
11+
'http://localhost:5173',
12+
'http://127.0.0.1:5173',
13+
],
14+
15+
'allowed_origins_patterns' => [],
16+
17+
'allowed_headers' => ['*'],
18+
19+
'exposed_headers' => [],
20+
21+
'max_age' => 0,
22+
23+
'supports_credentials' => true,
24+
25+
];

0 commit comments

Comments
 (0)