Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoBackend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
Backend
DojoBackend
Commits
195ecb7a
Commit
195ecb7a
authored
8 months ago
by
michael.minelli
Browse files
Options
Downloads
Patches
Plain Diff
Update .env example
parent
b86fb7b3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
env.exemple
+35
-34
35 additions, 34 deletions
env.exemple
with
35 additions
and
34 deletions
env.exemple
+
35
−
34
View file @
195ecb7a
########################### Server env vars
API_PORT=30992
LOGS_FOLDER=logs
#################################################################################
# This file have to be copied to .env and filled with the correct values
#################################################################################
########################### Database env vars
DATABASE_ROOT_PASSWORD=password
DATABASE_URL="mysql://root:password@dojo-database:port/database"
DATABASE_ROOT_PASSWORD=xxxxxxxxxxxxxx
########################### Session env vars
JWT_SECRET_KEY=secret
SESSION_TIMEOUT=0
JWT_SECRET_KEY=xxxxxxxxxxxxxx
LOGIN_GITLAB_CLIENT_ID=xxxxxxxxxxxx
LOGIN_GITLAB_CLIENT_SECRET=xxxxxxxxxxx
########################### Checkers env vars
DOCKERHUB_REPO_ASSIGNMENT_CHECKER=xxxxxxxxxxxxx # HEPIA example: dojohesso/dojo_assignment_checker
DOCKERHUB_REPO_EXERCISE_CHECKER=xxxxxxxxxxxxx # HEPIA example: dojohesso/dojo_exercise_checker
ROLES_WITH_TEACHING_STAFF_PERMISSIONS='["teacher", "adjsci", "colsci", "assi"]'
########################### Gitlab env vars
GITLAB_API_URL=url
GITLAB_URLS='["url"]'
GITLAB_DOJO_ACCOUNT_ID=0
GITLAB_DOJO_ACCOUNT_USERNAME=username
GITLAB_DOJO_ACCOUNT_TOKEN=token
GITLAB_GROUP_ROOT_ID=0
GITLAB_GROUP_TEMPLATES_ID=0
GITLAB_GROUP_ENONCES_ID=0
GITLAB_GROUP_EXERCICES_ID=0
########################### Enonce env vars
ENONCE_DEFAULT_DESCRIPTION="description"
ENONCE_DEFAULT_INIT_README=false
ENONCE_DEFAULT_SHARED_RUNNERS_ENABLED=true
ENONCE_DEFAULT_VISIBILITY=internal
ENONCE_DEFAULT_WIKI_ENABLED=false
ENONCE_DEFAULT_TEMPLATE=https://{{USERNAME}}:{{TOKEN}}@url.git
########################### Exercice env vars
EXERCICE_DEFAULT_DESCRIPTION="description"
EXERCICE_DEFAULT_VISIBILITY=private
EXERCICE_MAX_SAME_NAME=10
########################### App env vars
USER_PASSWORD_LENGTH=6
USER_PASSWORD_SALT_ROUNDS=13
\ No newline at end of file
GITLAB_DOMAIN=xxxxxxxxxxx # HEPIA example: gitedu.hesge.ch
GITLAB_URL=https://${GITLAB_DOMAIN}/
GITLAB_URLS='["${GITLAB_URL}"]' # All possible urls for the same gitlab instance (for example HEPIA have https://githepia.hesge.ch too so the value is : '["${GITLAB_URL}", "https://githepia.hesge.ch/"]').
GITLAB_DOJO_ACCOUNT_ID=xxxx
GITLAB_DOJO_ACCOUNT_USERNAME=xxxxxxx
GITLAB_DOJO_ACCOUNT_TOKEN=xxxxxxxx
GITLAB_GROUP_ROOT_ID=xxxx
GITLAB_GROUP_TEMPLATES_ID=xxxxx
GITLAB_GROUP_ASSIGNMENTS_ID=xxxxx
GITLAB_GROUP_EXERCISES_ID=xxxxx
GITLAB_GROUP_DELETED_ASSIGNMENTS_ID=xxxxx
GITLAB_GROUP_DELETED_EXERCISES_ID=xxxxx
# WARNING: DO NOT MODIFY THE NEXT TWO LINES
DATABASE_CONNEXION_LIMIT_PER_PROCESS=2
DATABASE_URL=mysql://root:${DATABASE_ROOT_PASSWORD}@dojo-database:3306/dojo?connection_limit=${DATABASE_CONNEXION_LIMIT_PER_PROCESS}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment