Update INSTALL.md

This commit is contained in:
Alec Armbruster 2019-03-07 16:11:59 -08:00 committed by GitHub
parent 3d051e81d5
commit eb02e2dea6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,8 @@ and Docker Compose (version 1.6.0 or greater) already installed.
`http://<internal IP or hostname of frontend container>/`. For an NGINX `http://<internal IP or hostname of frontend container>/`. For an NGINX
reverse proxy, that will appear as: reverse proxy, that will appear as:
```nginx ```
nginx
location /szuru { location /szuru {
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_pass http://<internal IP or hostname of frontend container>/; proxy_pass http://<internal IP or hostname of frontend container>/;
@ -104,11 +105,11 @@ and Docker Compose (version 1.6.0 or greater) already installed.
``` ```
3. **Preparing for production** 3. **Preparing for production**
If you plan on using szurubooru in a production setting, you may opt to If you plan on using szurubooru in a production setting, you may opt to
use a reverse proxy for added security and caching capabilities. Start use a reverse proxy for added security and caching capabilities. Start
by having the client docker listen only on localhost by changing `PORT` by having the client docker listen only on localhost by changing `PORT`
in your `.env` file to `127.0.0.1:8080` instead of simply `:8080`. Then in your `.env` file to `127.0.0.1:8080` instead of simply `:8080`. Then
configure NGINX (or your caching/reverse proxy server of your choice) configure NGINX (or your caching/reverse proxy server of your choice)
to proxy_pass `http://127.0.0.1:8080`. We've included an example config to proxy_pass `http://127.0.0.1:8080`. We've included an example config
located in the `nginx-vhost.production.example` file. located in the `nginx-vhost.production.example` file.