Added guide to automate replacing "/path/to/jschan" and "domain.com" in /etc/nginx/sites-available using GNU sed

merge-requests/218/head
AleDenshi 3 years ago
parent 0d15281538
commit 83f77c7e67
  1. 5
      README.md

@ -91,6 +91,11 @@ Edit/replace the following in your nginx config:
$ sudo editor /etc/nginx/sites-available/DOMAIN.COM
```
`sed` can be used to automate this process:
```bash
$ sudo sed -i 's|/path/to/jschan|/path/to/your/install|g' /etc/nginx/sites-available/DOMAIN.COM
sudo sed -i 's/domain.com/your.domain.com/g' /etc/nginx/sites-available/DOMAIN.COM
- Make sure the sites enabled folder is included by `/etc/nginx/nginx.conf` (it is in debian nginx package)
- Use [certbot](https://certbot.eff.org/) to get a free https certificate.
- For post flags to work, [follow this guide](http://archive.is/2SMOb) to setup the [legacy GeoIP database](https://www.miyuru.lk/geoiplegacy) and add these directives to the http block in `/etc/nginx/nginx.conf`:

Loading…
Cancel
Save