2018-10-13 08:46:13 +00:00
|
|
|
|
# Getting Started
|
2018-08-26 21:46:15 +00:00
|
|
|
|
|
|
|
|
|
**Authelia** can be tested in a matter of seconds with docker-compose based
|
2018-11-16 07:39:57 +00:00
|
|
|
|
on the latest image available on [Dockerhub].
|
2018-08-26 21:46:15 +00:00
|
|
|
|
|
2019-03-03 22:51:52 +00:00
|
|
|
|
In order to deploy the latest release locally, run the following command and
|
|
|
|
|
follow the instructions of bootstrap.sh:
|
2018-08-26 21:46:15 +00:00
|
|
|
|
|
2019-03-03 22:51:52 +00:00
|
|
|
|
source bootstrap.sh
|
2018-08-26 21:46:15 +00:00
|
|
|
|
|
2019-03-03 22:51:52 +00:00
|
|
|
|
Then, start the *dockerhub* [suite].
|
2018-08-26 21:46:15 +00:00
|
|
|
|
|
2019-03-03 22:51:52 +00:00
|
|
|
|
authelia-scripts suites start dockerhub
|
2019-03-02 23:25:40 +00:00
|
|
|
|
|
2019-03-03 22:51:52 +00:00
|
|
|
|
A [suite] is kind of a virtual environment for running Authelia.
|
|
|
|
|
If you want more details please read the related [documentation](./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">
|
|
|
|
|
<img src="../images/first_factor.png" width="400">
|
|
|
|
|
</p>
|
|
|
|
|
|
2019-03-02 23:25:40 +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.
|
|
|
|
|
Since we're running a test environment, we provide a fake webmail called
|
|
|
|
|
*MailCatcher* from which you can checkout the email and confirm
|
|
|
|
|
your identity.
|
|
|
|
|
The webmail is accessible from
|
2019-03-03 22:51:52 +00:00
|
|
|
|
[http://mail.example.com:8080](http://mail.example.com:8085).
|
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?
|
|
|
|
|
|
|
|
|
|
Here are the versions used for testing in Travis:
|
|
|
|
|
|
|
|
|
|
$ docker --version
|
|
|
|
|
Docker version 17.03.1-ce, build c6d412e
|
|
|
|
|
|
|
|
|
|
$ docker-compose --version
|
|
|
|
|
docker-compose version 1.14.0, build c7bdf9e
|
|
|
|
|
|
|
|
|
|
### How am I supposed to access the subdomains of example.com?
|
|
|
|
|
|
|
|
|
|
Well, in order to test Authelia, we will fake your browser that example.com is
|
|
|
|
|
served by your machine. To do that, open */etc/hosts* and append the following
|
|
|
|
|
lines:
|
|
|
|
|
|
|
|
|
|
127.0.0.1 home.example.com
|
|
|
|
|
127.0.0.1 public.example.com
|
|
|
|
|
127.0.0.1 secure.example.com
|
|
|
|
|
127.0.0.1 dev.example.com
|
|
|
|
|
127.0.0.1 admin.example.com
|
|
|
|
|
127.0.0.1 mx1.mail.example.com
|
|
|
|
|
127.0.0.1 mx2.mail.example.com
|
|
|
|
|
127.0.0.1 singlefactor.example.com
|
|
|
|
|
127.0.0.1 login.example.com
|
|
|
|
|
|
|
|
|
|
### What should I do if I want to contribute?
|
|
|
|
|
|
|
|
|
|
You can refer to the dedicated documentation [here](./build-and-dev.md).
|
|
|
|
|
|
2018-10-13 08:46:13 +00:00
|
|
|
|
[config.template.yml]: ../config.template.yml
|
2018-08-26 21:46:15 +00:00
|
|
|
|
[DockerHub]: https://hub.docker.com/r/clems4ever/authelia/
|
2019-03-03 22:51:52 +00:00
|
|
|
|
[suite]: ./suites.md
|