-
Notifications
You must be signed in to change notification settings - Fork 0
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
8c6853b
commit 7066dba
Showing
6 changed files
with
94 additions
and
8 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
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,29 @@ | ||
# Configuration | ||
# Configuration | ||
|
||
To configure EZAuth you can take a look at the `configtemplate.json` file in the `config` directory. This file contains all the configuration options for EZAuth. | ||
|
||
## Parameters table | ||
|
||
All configuration parameters are listed in the tables below. | ||
Make sure that all parameters are set correctly before starting the service. | ||
|
||
### Signup Configuration | ||
| Parameter | Description | | ||
|------------|-------------| | ||
| `signup.enable_conf_email` | **Datatype:** Boolean <br> **Default:** `false` <br> Enable or disable the confirmation E-Mail for new users. | | ||
| `signup.conf_code_expiry` | **Datatype:** Integer <br> **Default:** `3600` <br> The time in seconds until the confirmation code expires. | | ||
| `signup.enable_welcome_email` | **Datatype:** Boolean <br> **Default:** `false` <br> Enable or disable the welcome E-Mail for new users. | | ||
|
||
### Email Configuration | ||
|
||
??? Warning "SMTP SSL required" | ||
EZAuth uses SMTP_SSL to send E-Mails. Make sure that your SMTP server supports SSL. | ||
Currently EZAuth does not support STARTTLS. | ||
|
||
| Parameter | Description | | ||
|------------|-------------| | ||
| `email.login_usr` | **Datatype:** String <br> **Default:** `""` <br> E-Mail Login Identifier (mostly the email itself). <br> **Example:** [email protected] | | ||
| `email.login_pwd` | **Datatype:** String <br> **Default:** `""` <br> E-Mail Login Password. | | ||
| `email.sender_email` | **Datatype:** String <br> **Default:** `""` <br> E-Mail address from which the emails are sent (mostly the same as `email.login_usr`) | | ||
| `email.smtp_host` | **Datatype:** String <br> **Default:** `""` <br> SMTP Host for the E-Mail server. <br> **Example:** `smtp.gmail.com` | | ||
| `email.smtp_port` | **Datatype:** Integer <br> **Default:** `465` <br> SMTP Port for the E-Mail server. | |
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,35 @@ | ||
# Setup / Installation | ||
# Setup / Installation | ||
|
||
## Install Docker and Docker Compose | ||
|
||
To install and use EZAuth you need to have Docker and Docker Compose installed on your system. If you don't have Docker and Docker Compose installed you can follow the official installation guides for [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/). | ||
|
||
!!! Info "Docker compose install" | ||
EZAuth documentation assumes the use of Docker desktop (or the docker compose plugin). | ||
While the docker-compose standalone installation still works, it will require changing all `docker compose` commands from `docker compose` to `docker-compose` to work (e.g. `docker compose up -d` will become `docker-compose up -d`). | ||
|
||
??? Warning "Docker on windows" | ||
If you just installed docker on a windows system, make sure to reboot your system, otherwise you might encounter unexplainable Problems related to network connectivity to docker containers. | ||
|
||
## EZAuth Docker Setup | ||
|
||
To install EZAuth you need to clone the repository and perform an initial | ||
configuration. You can do this by running the following commands: | ||
|
||
|
||
``` bash | ||
# Clone the repository | ||
git clone https://github.com/JohnGrubba/ezauth | ||
cd ezauth | ||
cp config/configtemplate.json config/config.json | ||
``` | ||
|
||
Then you need to edit the `config/config.json` file to your needs. | ||
For an explanation of the configuration options, see the [Configuration](configuration.md) page. | ||
|
||
### Running the service | ||
After you have configured the service you can start it by running the following command: | ||
|
||
``` bash | ||
docker compose up -d | ||
``` |
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