commit 0aea9f2111b6e228031d011b1d00e35e7435dba7 Author: JulienAldon Date: Sun Jan 11 16:48:08 2026 +0100 first commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..d05c705 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# Add new entry + +Create a new configuration inside `/nginx/site-available` (name format : site domain name) +Clone config on gateway server + +```sh +# Add certificate through certbot +sudo certbot certonly --dns-ovh --dns-ovh-credentials ~/<.secret>/certbot/ovh.ini -v -d ${conf_name} +# Link configuration in nginx +sudo ln -s /etc/nginx/sites-available/${conf_name} /etc/nginx/sites-enabled +# Test config +sudo nginx -t +# Restart nginx +sudo systemctl restart nginx.service +``` + +### Add error pages +```sh +cd gateway +sudo cp 50x.html /usr/share/nginx/html/ +``` \ No newline at end of file