first commit

This commit is contained in:
2026-01-11 16:48:08 +01:00
commit 0aea9f2111

21
README.md Normal file
View File

@@ -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/
```