From b73c41fcffdf446e9dd12f2d4c5ab61a8a19df4f Mon Sep 17 00:00:00 2001 From: bobokun Date: Thu, 21 Jan 2021 15:50:18 -0500 Subject: [PATCH] Update recipes.subdomain.conf.sample Updated links that were invalid and a working recipes reverse proxy. More information can be found in the discussion here https://github.com/vabene1111/recipes/discussions/341 --- recipes.subdomain.conf.sample | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/recipes.subdomain.conf.sample b/recipes.subdomain.conf.sample index ea0764f..f2e9a93 100644 --- a/recipes.subdomain.conf.sample +++ b/recipes.subdomain.conf.sample @@ -1,14 +1,9 @@ -## Version 2020/12/09 +## Version 2021/01/21 # make sure that your dns has a cname set for recipes -# make sure to set VIRTUAL_HOST in your .env file - -# make sure to set up the Recipes.conf file in your recipes nginx folder. -# Doc: https://github.com/vabene1111/recipes/blob/develop/docs/docker/nginx-proxy/nginx/conf.d/Recipes.conf +# make sure to mount /media/ in your swag container to point to your Recipes Media directory # if using Authelia use this one: -# Doc: https://github.com/vabene1111/recipes/blob/develop/docs/docker/nginx-proxy%20with%20proxy%20authentication/nginx/conf.d/Recipes.conf - -# if enabling auth, make sure to enable REVERSE_PROXY_AUTH in your .env file +# Doc: https://vabene1111.github.io/recipes/install/docker/#using-proxy-authentication server { listen 443 ssl; @@ -25,7 +20,12 @@ server { # enable for Authelia #include /config/nginx/authelia-server.conf; - + + # serve media files + location /media/ { + alias /media/; + } + location / { # enable the next two lines for http auth #auth_basic "Restricted"; @@ -40,8 +40,8 @@ server { include /config/nginx/proxy.conf; resolver 127.0.0.11 valid=30s; - set $upstream_app nginx_recipes; - set $upstream_port 80; + set $upstream_app recipes; + set $upstream_port 8080; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port;