-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
112 additions
and
261 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
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,6 @@ | ||
# Pretty Good Proposal V2 | ||
|
||
## Live Structure | ||
|
||
frontend: bewerben.c3fl.de | ||
backend: api.bewerben.c3fl.de |
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,30 @@ | ||
{ | ||
"listeners": { | ||
"*:80": { | ||
"pass": "routes" | ||
} | ||
}, | ||
"routes": [ | ||
{ | ||
"match": { | ||
"uri": "!/index.php" | ||
}, | ||
"action": { | ||
"share": "/var/www/html/public$uri", | ||
"response_headers": { | ||
"Cache-Control": "max-age=60, s-maxage=120" | ||
}, | ||
"fallback": { | ||
"pass": "applications/laravel" | ||
} | ||
} | ||
} | ||
], | ||
"applications": { | ||
"laravel": { | ||
"type": "php", | ||
"root": "/var/www/html/public/", | ||
"script": "index.php" | ||
} | ||
} | ||
} |
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,12 @@ | ||
#!/bin/bash | ||
|
||
cd /var/www/html && mkdir -p storage/framework/{sessions,views,cache} | ||
cd /var/www/html && php artisan storage:link | ||
cd /var/www/html && php artisan optimize:clear | ||
cd /var/www/html && php artisan config:cache | ||
cd /var/www/html && php artisan route:cache | ||
cd /var/www/html && php artisan view:cache | ||
cd /var/www/html && php artisan event:cache | ||
cd /var/www/html && php artisan migrate --force | ||
|
||
exec "$@" |
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,46 @@ | ||
version: "3" | ||
|
||
networks: | ||
web: | ||
external: true | ||
|
||
volumes: | ||
storage: | ||
|
||
services: | ||
backend: | ||
image: ghcr.io/chaostreff-flensburg/simple-borrow:latest | ||
restart: always | ||
volumes: | ||
- storage:/var/www/html/storage | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.routers.ausleihe.rule=Host(`api.bewerben.c3fl.de`)" | ||
- "traefik.http.routers.ausleihe.entrypoints=https,http" | ||
- "traefik.http.services.ausleihe.loadbalancer.server.port=80" | ||
- "traefik.http.routers.ausleihe.tls.certresolver=mytlschallenge" | ||
- "traefik.docker.network=web" | ||
working_dir: /var/www/html | ||
networks: | ||
- web | ||
env_file: | ||
- .env | ||
logging: | ||
options: | ||
max-size: "10m" | ||
|
||
frontend: | ||
image: ghcr.io/chaostreff-flensburg/simple-borrow:latest | ||
restart: always | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.routers.ausleihe.rule=Host(`bewerben.c3fl.de`)" | ||
- "traefik.http.routers.ausleihe.entrypoints=https,http" | ||
- "traefik.http.services.ausleihe.loadbalancer.server.port=80" | ||
- "traefik.http.routers.ausleihe.tls.certresolver=mytlschallenge" | ||
- "traefik.docker.network=web" | ||
networks: | ||
- web | ||
logging: | ||
options: | ||
max-size: "10m" |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.