Skip to content

Instantly share code, notes, and snippets.

nginx reads the config from /etc/nginx/sites-enabled/
usually there are just links from /etc/nginx/sites-available.
when generating certificates with certbot, choose 'webroot' option if there is a directory that is served.
Cerbot will place the test files there - and will ask the disk location where the exposed dir is located like '/var/www'
certbot generates certificates in /etc/letsencrypt/live/balamaci.eu/
and you need to reference them in nginx site config:
mvn archetype:generate \
-DarchetypeGroupId=org.codehaus.mojo.archetypes \
-DarchetypeArtifactId=pom-root \
-DgroupId=com.balamaci.reactive \
-DarchetypeVersion=RELEASE
#cd inside created dir above
mvn archetype:generate \
-DarchetypeGroupId=org.apache.maven.archetypes \
curl --header "Content-Type: application/json" --request POST --data '{"username":"tyrion","password":"Tyrion Lanister"}' http://localhost:8080/users | jq