This commit is contained in:
@@ -84,6 +84,7 @@ in
|
|||||||
group = "starr";
|
group = "starr";
|
||||||
settings = {
|
settings = {
|
||||||
authentication.AuthenticationMethod = "external";
|
authentication.AuthenticationMethod = "external";
|
||||||
|
authentication.AuthenticationType = "enabled";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
radarr = {
|
radarr = {
|
||||||
|
|||||||
@@ -49,6 +49,10 @@ in
|
|||||||
access_control = {
|
access_control = {
|
||||||
default_policy = "deny";
|
default_policy = "deny";
|
||||||
rules = [
|
rules = [
|
||||||
|
{
|
||||||
|
domain = "radarr.shobu.fr";
|
||||||
|
policy = "bypass";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
domain = "*.shobu.fr";
|
domain = "*.shobu.fr";
|
||||||
policy = "one_factor";
|
policy = "one_factor";
|
||||||
|
|||||||
@@ -63,6 +63,23 @@ in
|
|||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
include ${authelia-snippets.proxy};
|
include ${authelia-snippets.proxy};
|
||||||
include ${authelia-snippets.authelia-authrequest};
|
include ${authelia-snippets.authelia-authrequest};
|
||||||
|
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
|
||||||
|
# From https://gist.github.com/R0GGER/916183fca41f02df1471a6f455e5869f
|
||||||
|
# HSTS (ngx_http_headers_module is required) (63072000 seconds = 2 years)
|
||||||
|
add_header Strict-Transport-Security "max-age=63072000; preload" always;
|
||||||
|
add_header Referrer-Policy strict-origin-when-cross-origin;
|
||||||
|
add_header X-Content-Type-Options nosniff;
|
||||||
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
|
add_header X-Frame-Options SAMEORIGIN;
|
||||||
|
add_header Content-Security-Policy upgrade-insecure-requests;
|
||||||
|
add_header Permissions-Policy interest-cohort=();
|
||||||
|
add_header Expect-CT 'enforce; max-age=604800';
|
||||||
|
more_set_headers 'Server: Proxy';
|
||||||
|
more_clear_headers 'X-Powered-By';
|
||||||
|
|
||||||
proxy_ssl_server_name on;
|
proxy_ssl_server_name on;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@@ -137,9 +154,16 @@ in
|
|||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
# include ${authelia-snippets.authelia-location};
|
||||||
|
# error_log /var/log/nginx/debug_files.log debug;
|
||||||
|
'';
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${sin-address}:8086";
|
proxyPass = "http://${sin-address}:8086";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
# include ${authelia-snippets.proxy};
|
||||||
|
# include ${authelia-snippets.authelia-authrequest};
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user