# How To Add Startup Scripts to Keycloak

Simply put a .cli script in this directory. 
The scripts are executed by /opt/jboss/tools/autorun.sh inside docker container, which is called from /opt/jboss/tools/docker-entrypoint.sh.
For example to add parameter for accessing google.com via corporate proxy:

```
$ cat add-proxy.cli

embed-server --server-config=standalone-ha.xml --std-out=discard
/subsystem=keycloak-server/spi=connectionsHttpClient/provider=default:write-attribute(name=properties.proxy-mappings,value=[".*\\.google\\.com;http://proxy_server:80"])
```

Keycloak inside docker (jboss/keycloak) uses standalone-ha.xml by default (see /opt/jboss/tools/docker-entrypoint.sh).
For more information about proxy configuration see [JBoss mailing list entry](https://lists.jboss.org/pipermail/keycloak-dev/2017-October/010097.html).