first commit
This commit is contained in:
21
README.md
Normal file
21
README.md
Normal 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/
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user