Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Simon Oliver Tveit
cnaas-nms-backup
Commits
2ed3a851
Commit
2ed3a851
authored
Aug 18, 2021
by
Kat Hößel
Browse files
(uninett) Add script for setting up the auth container
parent
5d0d62ca
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
docker/dev/cnaas.pgdump
0 → 100644
View file @
2ed3a851
This diff is collapsed.
Click to expand it.
docker/dev/setup_auth.sh
0 → 100644
View file @
2ed3a851
#!/bin/bash
# create JWT cert (public+private key) on auth server
cd
/opt/auth-server-poc/cert/
openssl ecparam
-genkey
-name
prime256v1
-noout
-out
private.pem
openssl ec
-in
private.pem
-pubout
-out
public.pem
chgrp
www-data private.pem
chmod
g+r private.pem
echo
"cnaas:
\$
apr1
\$
F5MhM0EK
\$
Jeo6iMO9bubcMPI0Dth6N1"
>
/opt/auth-server-poc/userdb/.htpasswd
killall uwsgi
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment