diff --git a/docs/install/docker.md b/docs/install/docker.md index 2261d481..78130a07 100644 --- a/docs/install/docker.md +++ b/docs/install/docker.md @@ -111,6 +111,28 @@ wget https://raw.githubusercontent.com/vabene1111/recipes/develop/docs/install/d {% include "./docker/nginx-proxy/docker-compose.yml" %} ~~~ +#### Nginx Swag by LinuxServer +[This container](https://github.com/linuxserver/docker-swag) is an all in one solution created by LinuxServer.io + +It also contains templates for popular apps, including Tandoor Recipes, so you don't have to manually configure nginx and discard the template provided in Tandoor repo. Tandoor config is called `recipes.subdomain.conf.sample` which you can adapt for your instance + +If you're running Swag on the default port, you'll just need to change the container name to yours. + +If your running Swag on a custom port, some headers must be changed. To do this, + +- Create a copy of `proxy.conf` +- Replace `proxy_set_header X-Forwarded-Host $host;` and `proxy_set_header Host $host;` to + - `proxy_set_header X-Forwarded-Host $http_host;` and `proxy_set_header Host $http_host;` +- Update `recipes.subdomain.conf` to use the new file +- Restart the linuxserver/swag container and Recipes will work + +More information [here](https://github.com/TandoorRecipes/recipes/issues/959#issuecomment-962648627). + + +In both cases, also make sure to mount `/media/` in your swag container to point to your Tandoor Recipes Media directory. + +Please refer to the [appropriate documentation](https://github.com/linuxserver/docker-swag#usage) for the container setup. + ## Additional Information ### Nginx vs Gunicorn