Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
811a400a
Verified
Commit
811a400a
authored
4 years ago
by
Quentin Duchemin
Browse files
Options
Downloads
Patches
Plain Diff
[Lufi] Not sure about KEY_COOKIE injection, change to env variable
parent
f1513f7c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pica-lufi/entrypoint.sh
+1
-4
1 addition, 4 deletions
pica-lufi/entrypoint.sh
pica-lufi/secrets/lufi.secrets.example
+3
-0
3 additions, 0 deletions
pica-lufi/secrets/lufi.secrets.example
with
4 additions
and
4 deletions
pica-lufi/entrypoint.sh
+
1
−
4
View file @
811a400a
...
...
@@ -20,9 +20,6 @@ if [ -z "${POSTGRES_PASSWORD}" ]; then
exit
1
fi
echo
"Generate secret key for cookies..."
key
=
`
tr
-dc
'a-zA-Z0-9'
< /dev/urandom |
fold
-w
48 |
head
-n
1
`
echo
"Create crontab for cleaning tasks..."
# See https://framagit.org/fiat-tux/hat-softwares/lufi/-/wikis/cron-jobs
...
...
@@ -33,7 +30,7 @@ echo "0 0 * * * carton exec $APP_HOME/script/lufi cron cleanfiles --mode product
echo
"Start Lufi..."
KEY_COOKIE
=
${
key
}
$@
&
$@
&
echo
"Start supercronic..."
supercronic /crontab.conf
This diff is collapsed.
Click to expand it.
pica-lufi/secrets/lufi.secrets.example
+
3
−
0
View file @
811a400a
EMAIL_PASSWORD=password
# Generate one with the following command :
# tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 48 | head -n 1
KEY_COOKIE=
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