v1.0.0 #1
@@ -1,6 +1,9 @@
|
||||
FROM python:3.13-slim
|
||||
LABEL org.opencontainers.image.vendor="JDB-NET"
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
ARG VERSION=dev
|
||||
ENV APP_VERSION=${VERSION}
|
||||
RUN pip install -r requirements.txt
|
||||
RUN apt-get update && apt-get install -y curl ffmpeg procps
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -20,6 +20,10 @@ app = Flask(__name__)
|
||||
app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY', 'your-secret-key-here')
|
||||
ENCODING_ENABLED = os.environ.get('ENABLE_ENCODING', 'true').lower() in ('true', '1', 'yes')
|
||||
|
||||
@app.context_processor
|
||||
def inject_version():
|
||||
return {'version': os.environ.get('VERSION', 'dev')}
|
||||
|
||||
DB_CONFIG = {
|
||||
'host': os.environ.get('DB_HOST', 'localhost'),
|
||||
'user': os.environ.get('DB_USER', 'root'),
|
||||
|
||||
+3
-3
@@ -18,7 +18,7 @@
|
||||
</head>
|
||||
<body class="bg-gray-950 text-white min-h-screen">
|
||||
<nav class="bg-gray-950 border-b border-gray-800 modern-shadow" x-data="{ mobileMenuOpen: false }">
|
||||
<div class="max-w-7xl mx-auto px-4">
|
||||
<div class="max-w-full mx-auto px-8">
|
||||
<div class="flex justify-between h-16">
|
||||
<div class="flex items-center">
|
||||
<a href="{{ url_for('index') }}" class="flex items-center space-x-2">
|
||||
@@ -81,8 +81,8 @@
|
||||
{% block scripts %}{% endblock %}
|
||||
<footer class="w-full mt-12 py-6 bg-gray-950 border-t border-gray-800 text-center text-gray-400 text-sm">
|
||||
<div class="max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-2 px-4">
|
||||
<span>© <script>document.write(new Date().getFullYear());</script> JDB-NET</span>
|
||||
<a href="https://git.jdbnet.co.uk/jamie/encoder" target="_blank" class="hover:text-sky-400 transition-all">VERSION_HERE</a>
|
||||
<span>© <script>document.write(new Date().getFullYear());</script> <a href="https://www.jdbnet.co.uk" target="_blank" class="hover:text-sky-400 transition-all">JDB-NET</a></span>
|
||||
<a href="https://git.jdbnet.co.uk/jamie/encoder" target="_blank" class="hover:text-sky-400 transition-all">{{ version }}</a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user