Skip to content

Commit

Permalink
Merge pull request linuxserver#297 from XxAcielxX/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Roxedus authored Mar 18, 2021
2 parents 0a5ec1f + 6a7bd0d commit 340d0e7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions flexget.subfolder.conf.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## Version 2021/02/22
# make sure to set 'base_url: /flexget' under your flexget's config.yml web_server block
#
location /flexget {
return 301 $scheme://$host/flexget/;
}

location ^~ /flexget/ {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;

# enable the next two lines for ldap auth
#auth_request /auth;
#error_page 401 =200 /ldaplogin;

# enable for Authelia
#include /config/nginx/authelia-location.conf;

include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app flexget;
set $upstream_port 5050;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}

location ^~ /flexget/api/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app flexget;
set $upstream_port 5050;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}

0 comments on commit 340d0e7

Please sign in to comment.