{% extends "base.html" %} {% block title %}Configuration - red-plex{% endblock %} {% block content %}

Configuration

Edit Configuration
Current Configuration
{% if config %}
General Settings
Log Level {{ config.get('LOG_LEVEL', 'INFO') }}
Section Name {{ config.get('SECTION_NAME', 'Music') }}
Plex Settings
Plex URL {% if config.get('PLEX_URL') %} {{ config.PLEX_URL }} {% else %} Not configured {% endif %}
Plex Token {% if config.get('PLEX_TOKEN') %} Configured {% else %} Not configured {% endif %}

RED (Redacted) Settings
{% if config.get('RED') %} {% else %} {% endif %}
Base URL {{ config.RED.get('BASE_URL', 'Not set') }}
API Key {% if config.RED.get('API_KEY') %} Configured {% else %} Not configured {% endif %}
Rate Limit {% if config.RED.get('RATE_LIMIT') %} {{ config.RED.RATE_LIMIT.get('calls', 10) }} calls / {{ config.RED.RATE_LIMIT.get('seconds', 10) }} seconds {% else %} Default limits {% endif %}
RED configuration not found
OPS (Orpheus) Settings
{% if config.get('OPS') %} {% else %} {% endif %}
Base URL {{ config.OPS.get('BASE_URL', 'Not set') }}
API Key {% if config.OPS.get('API_KEY') %} Configured {% else %} Not configured {% endif %}
Rate Limit {% if config.OPS.get('RATE_LIMIT') %} {{ config.OPS.RATE_LIMIT.get('calls', 4) }} calls / {{ config.OPS.RATE_LIMIT.get('seconds', 15) }} seconds {% else %} Default limits {% endif %}
OPS configuration not found
{% else %} {% endif %}
{% if config %}
Configuration Status
{% if config.get('PLEX_URL') and config.get('PLEX_TOKEN') %}

Plex

Configured {% else %}

Plex

Missing settings {% endif %}
{% if config.get('RED', {}).get('API_KEY') %}

RED

Configured {% else %}

RED

No API key {% endif %}
{% if config.get('OPS', {}).get('API_KEY') %}

OPS

Configured {% else %}

OPS

No API key {% endif %}
{% set ready = config.get('PLEX_URL') and config.get('PLEX_TOKEN') and (config.get('RED', {}).get('API_KEY') or config.get('OPS', {}).get('API_KEY')) %} {% if ready %}

Status

Ready to use {% else %}

Status

Needs setup {% endif %}
{% endif %}
{% endblock %}