Skip to content

Commit e57b0ff

Browse files
author
Camille Moussu
committed
[doc] added guide for partial manager
1 parent 2e508ac commit e57b0ff

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

PARTIALMANAGER.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
This document is to explain how to setup a lemonLDAP manager with the new interface and a partial configuration.
2+
3+
# Building the front end :
4+
5+
This part is to do in a terminal located in this git repository.
6+
7+
Assuming that you already installed all the packages using `npm install`, you need to build the partial manager. For that, there is a script already :
8+
`npm run build-partial`
9+
10+
## Warning
11+
12+
This will build the manager assuming your manager url is "manager.example.com". If the base url is different, you need to change in the _package.json_ file the REACT_APP_BASEURL enviroment variable to your url.
13+
14+
# Putting the build in the manager
15+
16+
Once the new manager is built, you need to add it to your lemonLDAP.
17+
18+
First you need to copy the static file to the `lemonldap/lemonldap-ng-manager/site/htdocs/static` and start the llng server in another terminal.
19+
20+
```shell
21+
cp build/static/* yourPathToLLNG/lemonldap-ng-manager/site/htdocs/static/ -r
22+
```
23+
24+
```shell
25+
make start_web_server
26+
```
27+
28+
Then you need to add the index.html file as partial.html in the `e2e-test/conf/manager/` folder
29+
30+
```shell
31+
cp build/index.html yourPathToLLNG/e2e-test/conf/manager/partial.html
32+
```
33+
34+
Finally in the `e2e-tests/conf/manager-apache2.X.conf` file, you need to replace this line (line 43)
35+
36+
```conf
37+
RewriteCond "%{REQUEST_URI}" "!^/(?:static|doc|lib|javascript|favicon).*"
38+
```
39+
40+
by
41+
42+
```conf
43+
RewriteCond "%{REQUEST_URI}" "!^/(?:static|doc|lib|javascript|favicon|partial\.html).*"
44+
```
45+
46+
Then you only need to reload the web server using `make reload_web_server` and access http://yourManagerURL/partial.html

0 commit comments

Comments
 (0)