This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from authentik.sources.plex.models import UserPlexSourceConnection | |
import json | |
connection = UserPlexSourceConnection.objects.filter(user=request.user).first() | |
if not connection: | |
ak_logger.info("Overseer: No Plex connection found") | |
return {} | |
base_url = "http://overseerr.apps:5055" | |
end_point = "/api/v1/auth/plex" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from authentik.sources.plex.models import UserPlexSourceConnection | |
base_url = "http://tautulli.apps:8181" | |
end_point = "/auth/signin" | |
headers = { | |
"Content-Type": "application/x-www-form-urlencoded", | |
} | |
def auth_with_plex(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:local zone "local"; | |
:local ttl "00:05:00" | |
:local hostname | |
:local ip | |
:local dnsip | |
:local dhcpip | |
:local dnsnode | |
:local dhcpnode | |
/ip dns static; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Runs ssh-agent if it is not already running. | |
# | |
env=~/.ssh/agent.env | |
agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; } | |
agent_start () { | |
(umask 077; ssh-agent >| "$env") |