Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIVEAU1 update #4

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
COMPOSE_PROJECT_NAME=chess

APP_DOMAIN=chess.docker.localhost
APP_ENV=dev
APP_SECRET=7999e56579868c9867c8418da37e2160

DATABASE_HOST=mysql
DATABASE_PORT=3306
DATABASE_NAME=chess
DATABASE_USER=chessguy
DATABASE_URL=mysql://chessguy:Awes0meP4A55W0rd@mysql:3306/chess
DATABASE_PASSWORD=Awes0meP4A55W0rd
DATABASE_ROOT_PASSWORD=admin
DATABASE_ROOT_PASSWORD=admin

MAILER_URL=null://localhost
15 changes: 15 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
COMPOSE_PROJECT_NAME=chess

APP_DOMAIN=chess.docker.localhost
APP_ENV=dev
APP_SECRET=7999e56579868c9867c8418da37e2160

DATABASE_HOST=mysql
DATABASE_PORT=3306
DATABASE_NAME=chess
DATABASE_USER=chessguy
DATABASE_URL=mysql://db_user:[email protected]:3306/db_name
DATABASE_PASSWORD=Awes0meP4A55W0rd
DATABASE_ROOT_PASSWORD=admin

MAILER_URL=null://localhost
5 changes: 5 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# define your env variables for the test env here
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
PANTHER_APP_ENV=panther
26 changes: 22 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
# Created by .ignore support plugin (hsz.mobi)
### Example user template template
### Example user template

# IntelliJ project files
.idea
*.iml
out
gen
.infra/docker/nginx/default.conf
.infra/docker/nginx/default.conf

###> symfony/framework-bundle ###
/.env.local
/.env.local.php
/.env.*.local
/public/bundles/
/var/
/vendor/
###< symfony/framework-bundle ###

###> symfony/phpunit-bridge ###
.phpunit
.phpunit.result.cache
/phpunit.xml
###< symfony/phpunit-bridge ###
.idea/
###> symfony/web-server-bundle ###
/.web-server-pid
###< symfony/web-server-bundle ###
*.log
composer.lock
9 changes: 7 additions & 2 deletions .infra/docker/nginx/chess.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

server {
server_name ${NGINX_SERVERNAME};
root ${NGINX_ROOTDIR};
root ${NGINX_ROOTDIR}/public;
index index.php;

location ~ \.php$ {
Expand All @@ -13,7 +14,11 @@ server {

#internal;
}
location / {
# try to serve file directly, fallback to index.php
try_files $uri /index.php$is_args$args;
}

# return 404 for all other php files not matching the front controller
# this prevents access to other php files you don't want to be accessible.
}
}
166 changes: 0 additions & 166 deletions ChessBoard.php

This file was deleted.

Loading