2020-02-29 00:43:59 +00:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
title: Getting Started
|
|
|
|
nav_order: 2
|
|
|
|
---
|
|
|
|
|
2018-10-13 08:46:13 +00:00
|
|
|
# Getting Started
|
2018-08-26 21:46:15 +00:00
|
|
|
|
2019-11-03 12:07:02 +00:00
|
|
|
**Authelia** can be tested in a matter of seconds with Docker and docker-compose.
|
2018-08-26 21:46:15 +00:00
|
|
|
|
2019-11-03 12:07:02 +00:00
|
|
|
In order to deploy the current version of Authelia locally, run the following
|
|
|
|
command and follow the instructions of bootstrap.sh:
|
2018-08-26 21:46:15 +00:00
|
|
|
|
2019-12-05 20:52:04 +00:00
|
|
|
$ source bootstrap.sh
|
2018-08-26 21:46:15 +00:00
|
|
|
|
2019-11-16 14:43:20 +00:00
|
|
|
Then, start the *Standalone* [suite].
|
2018-08-26 21:46:15 +00:00
|
|
|
|
2019-12-05 20:52:04 +00:00
|
|
|
$ authelia-scripts suites setup Standalone
|
2019-03-02 23:25:40 +00:00
|
|
|
|
2019-11-03 12:07:02 +00:00
|
|
|
A [suite] is kind of a virtual environment for running Authelia in a complete ecosystem.
|
2020-03-01 05:58:26 +00:00
|
|
|
If you want more details please read the related [documentation](./contributing/suites.md).
|
2018-08-26 21:46:15 +00:00
|
|
|
|
|
|
|
## Test it!
|
|
|
|
|
|
|
|
After few seconds the services should be running and you should be able to
|
|
|
|
visit [https://home.example.com:8080/](https://home.example.com:8080/).
|
|
|
|
|
2018-11-16 07:39:57 +00:00
|
|
|
When accessing the login page, since this is a test environment a
|
|
|
|
self-signed certificate exception should appear, it has to be trusted
|
|
|
|
before you can get to the home page.
|
2018-08-26 21:46:15 +00:00
|
|
|
The certificate must also be trusted for each subdomain, therefore it is
|
|
|
|
normal to see this exception several times.
|
|
|
|
|
2018-11-16 07:39:57 +00:00
|
|
|
Below is what the login page looks like after you accepted all exceptions:
|
2018-08-26 21:46:15 +00:00
|
|
|
|
|
|
|
<p align="center">
|
2020-02-29 05:15:03 +00:00
|
|
|
<img src="./images/1FA.png" width="400">
|
2018-08-26 21:46:15 +00:00
|
|
|
</p>
|
|
|
|
|
2019-12-05 20:52:04 +00:00
|
|
|
You can use one of the users listed in
|
|
|
|
[https://home.example.com:8080/](https://home.example.com:8080/).
|
2019-03-03 22:51:52 +00:00
|
|
|
The rights granted to each user and group is also provided in the page as
|
|
|
|
a list of rules.
|
2018-11-16 07:39:57 +00:00
|
|
|
|
2019-03-03 22:51:52 +00:00
|
|
|
At some point, you'll be required to register your second factor device.
|
|
|
|
Since your security is **Authelia**'s priority, it will send
|
2018-11-16 07:39:57 +00:00
|
|
|
an email to the email address of the user to confirm the user identity.
|
2019-12-05 20:52:04 +00:00
|
|
|
Since you are running a test environment, a fake webmail called
|
|
|
|
*MailCatcher* has been deployed for you to check out the email and
|
|
|
|
confirm your identity.
|
|
|
|
The webmail is accessible at
|
2019-11-03 12:07:02 +00:00
|
|
|
[http://mail.example.com:8080](http://mail.example.com:8080).
|
2018-08-26 21:46:15 +00:00
|
|
|
|
|
|
|
Enjoy!
|
|
|
|
|
2019-03-03 22:51:52 +00:00
|
|
|
## FAQ
|
|
|
|
|
|
|
|
### What version of Docker and docker-compose should I use?
|
|
|
|
|
2020-01-16 20:57:44 +00:00
|
|
|
Here are the versions used for testing in Buildkite:
|
2019-03-03 22:51:52 +00:00
|
|
|
|
|
|
|
$ docker --version
|
2020-01-16 20:57:44 +00:00
|
|
|
Docker version 19.03.5, build 633a0ea838
|
2019-03-03 22:51:52 +00:00
|
|
|
|
|
|
|
$ docker-compose --version
|
2020-01-16 20:57:44 +00:00
|
|
|
docker-compose version 1.24.1, build unknown
|
2019-03-03 22:51:52 +00:00
|
|
|
|
2020-02-29 00:43:59 +00:00
|
|
|
### How can I serve my application under example.com?
|
|
|
|
|
|
|
|
Don't worry, you don't need to own the domain *example.com* to test Authelia.
|
|
|
|
Copy the following lines in your /etc/hosts.
|
|
|
|
|
|
|
|
192.168.240.100 home.example.com
|
|
|
|
192.168.240.100 login.example.com
|
|
|
|
192.168.240.100 singlefactor.example.com
|
|
|
|
192.168.240.100 public.example.com
|
|
|
|
192.168.240.100 secure.example.com
|
|
|
|
192.168.240.100 mail.example.com
|
|
|
|
192.168.240.100 mx1.mail.example.com
|
2019-03-03 22:51:52 +00:00
|
|
|
|
2020-02-29 00:43:59 +00:00
|
|
|
`192.168.240.100` is the IP attributed by Docker to the reverse proxy. Once done
|
|
|
|
you can access the listed sub-domains from your browser and they will target
|
|
|
|
the reverse proxy.
|
2019-03-03 22:51:52 +00:00
|
|
|
|
|
|
|
### What should I do if I want to contribute?
|
|
|
|
|
2020-02-29 00:43:59 +00:00
|
|
|
You can refer to the dedicated documentation [here](./contributing/index.md).
|
2019-03-03 22:51:52 +00:00
|
|
|
|
2020-02-29 00:43:59 +00:00
|
|
|
[suite]: ./contributing/suites.md
|