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
This commit is contained in:
bobokun 2021-01-21 15:50:18 -05:00 committed by GitHub
parent 77a6dee131
commit b73c41fcff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 that your dns has a cname set for recipes
# make sure to set VIRTUAL_HOST in your .env file # make sure to mount /media/ in your swag container to point to your Recipes Media directory
# 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
# if using Authelia use this one: # 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 # Doc: https://vabene1111.github.io/recipes/install/docker/#using-proxy-authentication
# if enabling auth, make sure to enable REVERSE_PROXY_AUTH in your .env file
server { server {
listen 443 ssl; listen 443 ssl;
@ -26,6 +21,11 @@ server {
# enable for Authelia # enable for Authelia
#include /config/nginx/authelia-server.conf; #include /config/nginx/authelia-server.conf;
# serve media files
location /media/ {
alias /media/;
}
location / { location / {
# enable the next two lines for http auth # enable the next two lines for http auth
#auth_basic "Restricted"; #auth_basic "Restricted";
@ -40,8 +40,8 @@ server {
include /config/nginx/proxy.conf; include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s; resolver 127.0.0.11 valid=30s;
set $upstream_app nginx_recipes; set $upstream_app recipes;
set $upstream_port 80; set $upstream_port 8080;
set $upstream_proto http; set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port; proxy_pass $upstream_proto://$upstream_app:$upstream_port;