diff --git a/README.md b/README.md
index ac7009d..fd82f8c 100644
--- a/README.md
+++ b/README.md
@@ -9,4 +9,4 @@
- ⚠️ Make sure to always have a backup of your user data.
> [!NOTE]
-> You can find the Documentation [here](https://johngrubba.github.io/ezauth/)
\ No newline at end of file
+> You can find the Documentation here
\ No newline at end of file
diff --git a/config/configtemplate.json b/config/configtemplate.json
index 61ef1f5..af66004 100644
--- a/config/configtemplate.json
+++ b/config/configtemplate.json
@@ -1,12 +1,12 @@
{
"signup": {
- "enable_confirmation_email": true,
- "confirmation_code_expires_minutes": 5,
+ "enable_conf_email": false,
+ "conf_code_expiry": 5,
"enable_welcome_email": true
},
"email": {
"login_usr": "",
- "login_pswd": "",
+ "login_pwd": "",
"sender_email": "",
"smtp_host": "",
"smtp_port": 465
diff --git a/docs/getting-started/configuration.md b/docs/getting-started/configuration.md
index af4abbf..df2f77d 100644
--- a/docs/getting-started/configuration.md
+++ b/docs/getting-started/configuration.md
@@ -1 +1,29 @@
-# Configuration
\ No newline at end of file
+# 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
**Default:** `false`
Enable or disable the confirmation E-Mail for new users. |
+| `signup.conf_code_expiry` | **Datatype:** Integer
**Default:** `3600`
The time in seconds until the confirmation code expires. |
+| `signup.enable_welcome_email` | **Datatype:** Boolean
**Default:** `false`
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
**Default:** `""`
E-Mail Login Identifier (mostly the email itself).
**Example:** test@test.com |
+| `email.login_pwd` | **Datatype:** String
**Default:** `""`
E-Mail Login Password. |
+| `email.sender_email` | **Datatype:** String
**Default:** `""`
E-Mail address from which the emails are sent (mostly the same as `email.login_usr`) |
+| `email.smtp_host` | **Datatype:** String
**Default:** `""`
SMTP Host for the E-Mail server.
**Example:** `smtp.gmail.com` |
+| `email.smtp_port` | **Datatype:** Integer
**Default:** `465`
SMTP Port for the E-Mail server. |
\ No newline at end of file
diff --git a/docs/getting-started/setup.md b/docs/getting-started/setup.md
index b8eb483..2a96f78 100644
--- a/docs/getting-started/setup.md
+++ b/docs/getting-started/setup.md
@@ -1 +1,35 @@
-# Setup / Installation
\ No newline at end of file
+# 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
+```
\ No newline at end of file
diff --git a/mkdocs.yml b/mkdocs.yml
index f352ab5..3285aa0 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -30,4 +30,28 @@ theme:
primary: blue
toggle:
icon: material/weather-sunny
- name: Switch to system preference
\ No newline at end of file
+ name: Switch to system preference
+markdown_extensions:
+ - attr_list
+ - admonition
+ - footnotes
+ - codehilite:
+ guess_lang: false
+ - toc:
+ permalink: true
+ - pymdownx.arithmatex:
+ generic: true
+ - pymdownx.details
+ - pymdownx.inlinehilite
+ - pymdownx.magiclink
+ - pymdownx.pathconverter
+ - pymdownx.smartsymbols
+ - pymdownx.snippets:
+ base_path: docs
+ check_paths: true
+ - pymdownx.superfences
+ - pymdownx.tabbed:
+ alternate_style: true
+ - pymdownx.tasklist:
+ custom_checkbox: true
+ - pymdownx.tilde
diff --git a/src/tools/mail.py b/src/tools/mail.py
index 70d0479..2289c50 100644
--- a/src/tools/mail.py
+++ b/src/tools/mail.py
@@ -6,7 +6,7 @@
smtp_host = config["email"]["smtp_host"]
smtp_port = config["email"]["smtp_port"]
username = config["email"]["login_usr"]
-password = config["email"]["login_pswd"]
+password = config["email"]["login_pwd"]
sender_email = config["email"]["sender_email"]