Customizations
App name, issuer, and UI theme
Section titled “App name, issuer, and UI theme”The most basic level of customization is to set the app name, issuer (the same as the public deployment URL), and UI theme. These should be customized in the admin console, using the web interface under Settings.
HTML templates
Section titled “HTML templates”You can also modify any HTML template of Goiabada if you wish, provided you don’t break the existing UI code (the JavaScript sections, element IDs, etc.).
Customization strategy
Section titled “Customization strategy”-
Copy the web folder from container to host
Terminal window # For auth server templatesdocker cp goiabada-authserver:/app/web ./authserver-web# For admin console templatesdocker cp goiabada-adminconsole:/app/web ./adminconsole-web -
Make your modifications
Edit the HTML/CSS files as needed. The templates use Go’s
html/templatepackage. -
Relaunch with volume mount
Update your
docker-compose.ymlto mount the modified templates:goiabada-authserver:volumes:- ./authserver-web/template:/app/web/template- ./authserver-web/static:/app/web/staticenvironment:- GOIABADA_AUTHSERVER_TEMPLATEDIR=/app/web/template- GOIABADA_AUTHSERVER_STATICDIR=/app/web/static -
Set environment variables
GOIABADA_AUTHSERVER_TEMPLATEDIR- Path to custom templates for auth serverGOIABADA_AUTHSERVER_STATICDIR- Path to custom static files for auth serverGOIABADA_ADMINCONSOLE_TEMPLATEDIR- Path to custom templates for admin consoleGOIABADA_ADMINCONSOLE_STATICDIR- Path to custom static files for admin console
Tailwind CSS
Section titled “Tailwind CSS”Goiabada uses Tailwind CSS for styling. When customizing templates, you can add or change Tailwind CSS classes.
If you modify Tailwind classes, you need to regenerate the main.css file using the Tailwind CLI tool.
Regenerating CSS
Section titled “Regenerating CSS”-
Download the Tailwind CLI tool from https://tailwindcss.com/blog/standalone-cli
-
Run the following command from the directory containing the
webfolder:Terminal window tailwindcss \-c ./web/tailwindcss/tailwind.config.js \-i ./web/tailwindcss/input.css \-o ./web/static/main.css -
Mount the updated
main.cssfile when running the container