|
|
@@ -7,26 +7,20 @@ Bretzel Identity Manager ou BIM Identity Manager
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
-* Clone this repo and serve the files with a web server.
|
|
|
-Make sure to exclude: `/vendor/` `templates` and `includes`
|
|
|
-* Rename `includes/config.ini.example` to `includes/config.ini` and edit the file with your parameters
|
|
|
+* Clone this repo.
|
|
|
+* Run `composer install` in root directory.
|
|
|
+* Serve the files with a web server (only the public directory should be served).
|
|
|
+* Make sure to exclude all the other files from being accessible.
|
|
|
+* Copy `includes/config.ini.example` to `includes/config.ini` and edit the file with your parameters.
|
|
|
|
|
|
### Example using caddy behind HTTPS reverse proxy
|
|
|
+>If BIM directory is under `/srv` :
|
|
|
|
|
|
```
|
|
|
http://bim.example.org {
|
|
|
-
|
|
|
- @blocked {
|
|
|
- path /vendor/* /templates/* /includes/*
|
|
|
- }
|
|
|
-
|
|
|
- respond @blocked 403
|
|
|
-
|
|
|
handle {
|
|
|
- root * /srv/bim
|
|
|
- php_fastcgi caddy-phpfpm:9000 {
|
|
|
- index signin.php
|
|
|
- }
|
|
|
+ root * /srv/BIM/public
|
|
|
+ php_fastcgi caddy-phpfpm:9000
|
|
|
}
|
|
|
}
|
|
|
```
|