rebranding_for_arealcontrol
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| rebranding_for_arealcontrol [2016/10/06 09:43] – [Use Apache as proxy for Wildfly] kalaschnikow | rebranding_for_arealcontrol [2018/04/23 15:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Rebranding for ArealControl ====== | ||
| + | ===== Backup ===== | ||
| + | * backup -> / | ||
| + | * keycloak_simon after deleting of logs weights only ~150 MB | ||
| + | |||
| + | |||
| + | ===== Core ===== | ||
| + | * Change keycloak/ | ||
| + | * comment out logo | ||
| + | * comment out "login to xyz-realm" | ||
| + | * In the admin console | ||
| + | * In the realm " | ||
| + | * in the application " | ||
| + | * in the settings | ||
| + | * change Redirect URI to "/ | ||
| + | * change Base URL to "/ | ||
| + | * ... | ||
| + | * create path "/ | ||
| + | * it is fix because of source, but it if we change it in source it is also possible to make it flexible (through configuration in standalone.xml) | ||
| + | |||
| + | |||
| + | ===== Run keycloak as service ===== | ||
| + | * copy wildfly file to /etc/init.d | ||
| + | * add user: '' | ||
| + | * change owner of all files in keycloak directory: '' | ||
| + | * change owner of attachments directory: '' | ||
| + | * Start the service: '' | ||
| + | |||
| + | ===== Use Apache as proxy for Wildfly ===== | ||
| + | |||
| + | It is necessary because we want to run the application on port 80. There are many possibilities to do it, but IMHO the cleanest (and simplest?) would be to proxy requests from Apache (port 80) to Wildfly (port 8080). | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | |||
| + | Enable: | ||
| + | * mod_proxy | ||
| + | * mod_rewrite | ||
| + | * mod_proxy_ajp | ||
| + | |||
| + | Example command: | ||
| + | <code bash> | ||
| + | sudo a2enmod proxy_ajp | ||
| + | </ | ||
| + | |||
| + | |||
| + | In proxy.conf: | ||
| + | |||
| + | <code bash> | ||
| + | ProxyPass / ajp:// | ||
| + | | ||
| + | # ProxyPass / http:// | ||
| + | # ProxyPassReverse / http:// | ||
| + | </ | ||
| + | |||
| + | In the keycloak admin console go to " | ||
