Skip to content

Commit 2ce8586

Browse files
authored
Merge pull request #533 from roib20/jfa-go
Add jfa-go conf
2 parents f3818f0 + 1161460 commit 2ce8586

2 files changed

Lines changed: 77 additions & 0 deletions

File tree

jfa-go.subdomain.conf.sample

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## Version 2023/02/05
2+
# make sure that your jfa-go container is named jfa-go
3+
# make sure that your dns has a cname set for jfa-go
4+
5+
server {
6+
listen 443 ssl;
7+
listen [::]:443 ssl;
8+
9+
server_name jfa-go.*;
10+
11+
include /config/nginx/ssl.conf;
12+
13+
client_max_body_size 0;
14+
15+
# enable for ldap auth (requires ldap-location.conf in the location block)
16+
#include /config/nginx/ldap-server.conf;
17+
18+
# enable for Authelia (requires authelia-location.conf in the location block)
19+
#include /config/nginx/authelia-server.conf;
20+
21+
# enable for Authentik (requires authentik-location.conf in the location block)
22+
#include /config/nginx/authentik-server.conf;
23+
24+
location / {
25+
# enable the next two lines for http auth
26+
#auth_basic "Restricted";
27+
#auth_basic_user_file /config/nginx/.htpasswd;
28+
29+
# enable for ldap auth (requires ldap-server.conf in the server block)
30+
#include /config/nginx/ldap-location.conf;
31+
32+
# enable for Authelia (requires authelia-server.conf in the server block)
33+
#include /config/nginx/authelia-location.conf;
34+
35+
# enable for Authentik (requires authentik-server.conf in the server block)
36+
#include /config/nginx/authentik-location.conf;
37+
38+
include /config/nginx/proxy.conf;
39+
include /config/nginx/resolver.conf;
40+
set $upstream_app jfa-go;
41+
set $upstream_port 8056;
42+
set $upstream_proto http;
43+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
44+
}

jfa-go.subfolder.conf.sample

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## Version 2023/02/05
2+
# make sure that your jfa-go container is named jfa-go
3+
# make sure to set the URL base (“Reverse Proxy subfolder”) in jfa-go > Settings > General (ui > url_base in jfa-go config.ini) to "/jfa-go/"
4+
5+
location /jfa-go {
6+
return 301 $scheme://$host/jfa-go/;
7+
}
8+
9+
location ^~ /jfa-go/ {
10+
# enable the next two lines for http auth
11+
#auth_basic "Restricted";
12+
#auth_basic_user_file /config/nginx/.htpasswd;
13+
14+
# enable for ldap auth (requires ldap-server.conf in the server block)
15+
#include /config/nginx/ldap-location.conf;
16+
17+
# enable for Authelia (requires authelia-server.conf in the server block)
18+
#include /config/nginx/authelia-location.conf;
19+
20+
# enable for Authentik (requires authentik-server.conf in the server block)
21+
#include /config/nginx/authentik-location.conf;
22+
23+
include /config/nginx/proxy.conf;
24+
include /config/nginx/resolver.conf;
25+
set $upstream_app jfa-go;
26+
set $upstream_port 8056;
27+
set $upstream_proto http;
28+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
29+
30+
# Remove the CSP header set for Jellyfin
31+
proxy_hide_header Content-Security-Policy;
32+
add_header Content-Security-Policy "";
33+
}

0 commit comments

Comments
 (0)