Run SimpleSAMLphp using nginx
, php-fpm
, and Docker Compose.
$ git clone https://github.com/mschwager/docker-simplesamlphp.git
$ cd docker-simplesamlphp
$ docker-compose build
$ ./bootstrap.sh
$ docker-compose up
Then you should be able to visit http://localhost/simplesaml/index.php.
Configuration files are persistently stored and made available for editing in the .storage
directory.
To enable the admin interface you must make the following changes in config.php
:
- Change
auth.adminpassword
from its default value of123
- Change
secretsalt
from its default value ofsecretsalt123
- Set
'admin' => TRUE
inmodule.enable
Because NGINX is listening for HTTP requests, you must also make the following changes in config.php
:
- Set
session.cookie.secure
tofalse
- Set
session.cookie.samesite
tonull
- Set
language.cookie.secure
tofalse
- Set
language.cookie.samesite
tonull
WARNING: If you're running these containers in a production-like environment be sure to enable HTTPS and change these settings back to their default values.
You can then visit http://localhost/simplesaml/module.php/admin/.
From here, you can follow the next steps for configuring SP and/or IdP functionality.