Nginx setup with utility scripts
A certbot connected external volume, named certificates
Refer here to set up correctly
- Run bootstrap script
./bootstrap.sh DEFAULT_HOSTWarning
bootstrap.shmust be run in the directory thatdocker-compose.ymlis located, since it usespwdto check current directory and set as prefix to utility scripts
docker compose up -dordocker-compose up -dto deploy
Generates nginx configuration files
scripts/nginx_genconf proxy DOMAIN [HOST] PORTscripts/nginx_genconf ssl DOMAINTo work correctly, certificate for DOMAIN must be generated beforehand.
To generate certificate, refer here
Enables generated configuration files (creates a symbolic link from sites-available to sites-enabled)
scripts/nginx_enable DOMAINDisables enabled configuration files (deletes the symbolic link in sites-enabled)
scripts/nginx_disable DOMAINTests nginx configuration files
scripts/nginx_testReloads nginx configuration gracefully using SIGHUP singal (minimal downtime)
scripts/nginx_reloadList enabled / available sites
scripts/nginx_list