Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Librephotos Docker Scaling
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Dev Ops
Librephotos Docker Scaling
Commits
9f155a62
Commit
9f155a62
authored
2 years ago
by
derneuere
Browse files
Options
Downloads
Patches
Plain Diff
Remove secret key
parent
8e3387ad
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backend/entrypoint.sh
+17
-0
17 additions, 0 deletions
backend/entrypoint.sh
librephotos.env
+1
-4
1 addition, 4 deletions
librephotos.env
with
18 additions
and
4 deletions
backend/entrypoint.sh
+
17
−
0
View file @
9f155a62
...
...
@@ -2,6 +2,23 @@
export
PYTHONUNBUFFERED
=
TRUE
export
PYTHONFAULTHANDLER
=
1
mkdir
-p
/logs
if
[
-n
"
$SECRET_KEY
"
]
then
echo
"Use env SECRET_KEY"
else
if
[
-f
/logs/secret.key
]
then
echo
"Use existing secret.key"
SECRET_KEY
=
`
cat
/logs/secret.key
`
export
SECRET_KEY
=
$SECRET_KEY
else
echo
"Create new secret.key"
SECRET_KEY
=
$(
python
-c
'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
)
echo
$SECRET_KEY
>
/logs/secret.key
export
SECRET_KEY
=
$SECRET_KEY
fi
fi
python image_similarity/main.py 2>&1 |
tee
/logs/gunicorn_image_similarity.log &
python manage.py showmigrations |
tee
/logs/show_migrate.log
python manage.py migrate |
tee
/logs/command_migrate.log
...
...
This diff is collapsed.
Click to expand it.
librephotos.env
+
1
−
4
View file @
9f155a62
...
...
@@ -10,9 +10,6 @@ myPhotos=./librephotos/pictures
# Internal data of LibrePhotos
data=./librephotos/data
# Secret Key. Get one here https://rb.gy/emgmwo (Shortened random.org link)
shhhhKey=D2VymuMn2gAhx4tmAawd
# ------------------------------------------------------------------------------------------------
# Wow, we are at the optional now. Pretty easy so far. You do not have to change any of the below.
...
...
@@ -21,7 +18,7 @@ shhhhKey=D2VymuMn2gAhx4tmAawd
httpPort=3000
# What branch should we install the latest weekly build or the development branch (dev)
tag=
latest
tag=
dev
# Number of workers, which take care of the request to the api. This setting can dramatically affect the ram usage.
# A positive integer generally in the 2-4 x $(NUM_CORES) range.
...
...
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