-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3646241
commit 56e947b
Showing
6 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
database/ | ||
database/ | ||
database.old/ | ||
database.old.7z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Authentik | ||
|
||
This is an Authentik setup for development in order to make local testing for production behaviour as easy as possible including the authentication mechanisms. | ||
|
||
## Preperation | ||
|
||
This package comes with an preconfigured authentic - which has its data mainly residing in a postgress database. The contents of this database is available in packed form. | ||
|
||
To extract the database use: | ||
```bash | ||
./database.unpack.sh | ||
``` | ||
(Note: make sure the database is not running before executing this command) | ||
|
||
## User Credentials | ||
|
||
To login you can use the superadmins credentials: | ||
|
||
| description | value | | ||
|-------------|-----------------------| | ||
| username | akadmin | | ||
| email | admin@dreammall.earth | | ||
| password | dreammall | | ||
|
||
## Publish changes | ||
|
||
If you want to publish changes to the database you can use the following command to pack the database: | ||
```bash | ||
./database.pack.sh | ||
``` | ||
(Note: this assumes you are not root and sets the permissions of the database files via sudo) | ||
(Note: make sure to shut down the database first before you run the script) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
SCRIPT_PATH=$(realpath $0) | ||
SCRIPT_DIR=$(dirname $SCRIPT_PATH) | ||
|
||
# delete last backup & backup | ||
rm -R $SCRIPT_DIR/database.old.7z || true | ||
mv $SCRIPT_DIR/database.7z $SCRIPT_DIR/database.old.7z | ||
|
||
# make the databse folder readable by everyone | ||
sudo chmod 777 -R $SCRIPT_DIR/database | ||
|
||
7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on $SCRIPT_DIR/database.7z $SCRIPT_DIR/database/{*,.[!.]*} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
SCRIPT_PATH=$(realpath $0) | ||
SCRIPT_DIR=$(dirname $SCRIPT_PATH) | ||
|
||
# delete last backup & backup | ||
rm -R $SCRIPT_DIR/database.old || true | ||
mv $SCRIPT_DIR/database $SCRIPT_DIR/database.old | ||
|
||
7z x $SCRIPT_DIR/database.7z -o$SCRIPT_DIR/database/ |