forked from thedevdojo/wave
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request thedevdojo#8 from haakco/main
Match default laravel config better. Main reason it to user using php…
- Loading branch information
Showing
7 changed files
with
242 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### Laravel template | ||
vendor/* | ||
node_modules/* | ||
npm-debug.log | ||
|
||
/storage/api-docs | ||
/storage/app | ||
/storage/framework/views | ||
/storage/framework/cache | ||
/storage/framework/sessions | ||
/storage/framework/testing | ||
/storage/framework/logs | ||
/storage/logs | ||
|
||
# Laravel 4 specific | ||
bootstrap/compiled.php | ||
app/storage/ | ||
|
||
# Laravel 5 & Lumen specific | ||
public/storage | ||
public/hot | ||
.env.*.php | ||
.env.php | ||
.env | ||
Homestead.yaml | ||
Homestead.json | ||
|
||
# Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer | ||
.rocketeer/ | ||
### Windows template | ||
# Windows thumbnail cache files | ||
Thumbs.db | ||
ehthumbs.db | ||
ehthumbs_vista.db | ||
|
||
# Dump file | ||
*.stackdump | ||
|
||
# Folder config file | ||
[Dd]esktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msix | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
### macOS template | ||
# General | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
#storage/*.key | ||
|
||
/cronFile | ||
|
||
/storage/GeoLite2-City.mmdb | ||
|
||
.idea | ||
.git | ||
|
||
#/storage/*.key | ||
!.gitignore | ||
!.gitkeep | ||
!.gitmodules | ||
|
||
!/storage/framework/views/.gitignore | ||
!/storage/logs/.gitignore | ||
!/storage/framework/testing/disks/local/.gitkeep | ||
!/storage/framework/views/.gitkeep | ||
!/storage/logs/.gitkeep | ||
!/storage/app/dashboard/tmp/.gitkeep | ||
!/storage/app/public/.gitkeep | ||
!/storage/api-docs/.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM haakco/stage3-ubuntu-20.04-php7.4-lv | ||
|
||
USER www-data | ||
|
||
## Cleanout previous dev just in case | ||
RUN rm -rf /var/www/site/* | ||
|
||
ADD --chown=www-data:www-data . /var/www/site | ||
|
||
WORKDIR /var/www/site | ||
|
||
RUN composer install --no-ansi --no-suggest --no-scripts --prefer-dist --no-progress --no-interaction \ | ||
--optimize-autoloader | ||
|
||
USER root | ||
|
||
RUN find /usr/share/GeoIP -not -user www-data -execdir chown "www-data:" {} \+ && \ | ||
find /var/www/site -not -user www-data -execdir chown "www-data:" {} \+ | ||
|
||
#HEALTHCHECK \ | ||
# --interval=30s \ | ||
# --timeout=60s \ | ||
# --retries=10 \ | ||
# --start-period=60s \ | ||
# CMD if [[ "$(curl -f http://127.0.0.1/ | jq -e . >/dev/null 2>&1)" != "0" ]]; then exit 1; else exit 0; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
export IMAGE_NAME='haakco/stage3-ubuntu-20.04-php7.4-lv-wave' | ||
export DOCKER_FILE="${DOCKER_FILE:-"Dockerfile"}" | ||
|
||
echo "Tagged as : ${IMAGE_NAME}" | ||
echo "" | ||
echo "" | ||
|
||
CMD='docker build --rm --file '"${DOCKER_FILE}"' -t '"${IMAGE_NAME}"' .' | ||
|
||
echo "Build commmand: ${CMD}" | ||
echo "" | ||
${CMD} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
* Set trusted proxy IP addresses. | ||
* | ||
* Both IPv4 and IPv6 addresses are | ||
* supported, along with CIDR notation. | ||
* | ||
* The "*" character is syntactic sugar | ||
* within TrustedProxy to trust any proxy | ||
* that connects directly to your server, | ||
* a requirement when you cannot know the address | ||
* of your proxy (e.g. if using ELB or similar). | ||
* | ||
*/ | ||
'proxies' => explode(',', env('TRUSTED_PROXIES', null)), // [<ip addresses>,], '*', '<ip addresses>,' | ||
|
||
/* | ||
* To trust one or more specific proxies that connect | ||
* directly to your server, use an array or a string separated by comma of IP addresses: | ||
*/ | ||
// 'proxies' => ['192.168.1.1'], | ||
// 'proxies' => '192.168.1.1, 192.168.1.2', | ||
|
||
/* | ||
* Or, to trust all proxies that connect | ||
* directly to your server, use a "*" | ||
*/ | ||
// 'proxies' => '*', | ||
|
||
/* | ||
* Which headers to use to detect proxy related data (For, Host, Proto, Port) | ||
* | ||
* Options include: | ||
* | ||
* - Illuminate\Http\Request::HEADER_X_FORWARDED_ALL (use all x-forwarded-* headers to establish trust) | ||
* - Illuminate\Http\Request::HEADER_FORWARDED (use the FORWARDED header to establish trust) | ||
* - Illuminate\Http\Request::HEADER_X_FORWARDED_AWS_ELB (If you are using AWS Elastic Load Balancer) | ||
* | ||
* - 'HEADER_X_FORWARDED_ALL' (use all x-forwarded-* headers to establish trust) | ||
* - 'HEADER_FORWARDED' (use the FORWARDED header to establish trust) | ||
* - 'HEADER_X_FORWARDED_AWS_ELB' (If you are using AWS Elastic Load Balancer) | ||
* | ||
* @link https://symfony.com/doc/current/deployment/proxies.html | ||
*/ | ||
'headers' => Illuminate\Http\Request::HEADER_X_FORWARDED_ALL, | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../storage/app/public |