some fix
This commit is contained in:
@@ -2,6 +2,7 @@ FROM python:3.13-slim
|
||||
|
||||
ARG puid=1000
|
||||
ARG pgid=1000
|
||||
ARG debug=false
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
LANG=C.UTF-8 \
|
||||
@@ -40,8 +41,13 @@ RUN yarn install
|
||||
WORKDIR /app
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
COPY ./requirements.txt ./requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY requirements*.txt ./
|
||||
RUN if [ "$debug" = "true" ] ; then \
|
||||
pip install --no-cache-dir -r requirements-dev.txt ; \
|
||||
else \
|
||||
pip install --no-cache-dir -r requirements-prod.txt ; \
|
||||
fi
|
||||
|
||||
|
||||
#COPY . .
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ INSTALLED_APPS = [
|
||||
'api',
|
||||
'torrent',
|
||||
]
|
||||
if DEBUG:
|
||||
INSTALLED_APPS = ["daphne"] + INSTALLED_APPS
|
||||
|
||||
MIDDLEWARE = [
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
@@ -139,6 +141,7 @@ USE_TZ = True
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
STATICFILES_DIRS = [
|
||||
BASE_DIR / "static",
|
||||
BASE_DIR / "frontend/dist",
|
||||
]
|
||||
STATIC_ROOT = BASE_DIR / "static_collected"
|
||||
|
||||
@@ -17,6 +17,7 @@ Including another URLconf
|
||||
from django.contrib import admin
|
||||
from django.urls import path, include # Added include for including app URLs
|
||||
from django.http import HttpResponse
|
||||
from django.views.generic import RedirectView
|
||||
from django.contrib.auth.views import (
|
||||
PasswordResetView, PasswordResetDoneView, PasswordResetConfirmView, PasswordResetCompleteView, PasswordChangeView,
|
||||
PasswordChangeDoneView, LogoutView
|
||||
@@ -28,6 +29,7 @@ urlpatterns = [
|
||||
path("", include("torrent.urls", "torrent")),
|
||||
path("user/", include("user.urls", "user")),
|
||||
path("api/", include("api.urls", "api")),
|
||||
path("home", RedirectView.as_view(url="/", permanent=False), name="home"),
|
||||
|
||||
# reset password related
|
||||
path("password_reset/", PasswordResetView.as_view(), name="password_reset"),
|
||||
|
||||
@@ -37,6 +37,11 @@
|
||||
<v-btn v-bind="props">Manage</v-btn>
|
||||
</template>
|
||||
<v-list>
|
||||
<v-list-item
|
||||
v-if="!$qt.is_active"
|
||||
href="https://gitea.devpanel.fr/oxpanel/oxapp25/releases/download/1.0/OxApp_Setup.exe"
|
||||
title="Download app"
|
||||
/>
|
||||
<v-list-item href="/password_change/" title="Change password"/>
|
||||
<v-list-item>
|
||||
<v-list-item-action>
|
||||
|
||||
@@ -6,15 +6,9 @@ django-filter
|
||||
djangorestframework-simplejwt
|
||||
channels
|
||||
channels_redis
|
||||
|
||||
celery
|
||||
|
||||
pytz
|
||||
psycopg[binary]
|
||||
uvicorn
|
||||
transmission-rpc
|
||||
stream-zip
|
||||
anyio
|
||||
websockets
|
||||
uvloop
|
||||
watchfiles
|
||||
2
app/requirements-dev.txt
Normal file
2
app/requirements-dev.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
-r requirements-common.txt
|
||||
daphne
|
||||
2
app/requirements-prod.txt
Normal file
2
app/requirements-prod.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
-r requirements-common.txt
|
||||
uvicorn
|
||||
BIN
app/static/oxpanel.png
Normal file
BIN
app/static/oxpanel.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.4 KiB |
@@ -1,8 +1,10 @@
|
||||
{% load django_vite %}<!DOCTYPE html>
|
||||
{% load django_vite %}{% load static %}<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{% block base_title %}Oxpanel{% block title %}{% endblock %}{% endblock %}</title>
|
||||
<link rel="icon" type="image/png" href="{% static 'oxpanel.png' %}"/>
|
||||
|
||||
{% block base_css %}
|
||||
{# {% stylesheet_pack 'app' %}#}
|
||||
<link data-n-head="ssr" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
|
||||
|
||||
@@ -58,6 +58,7 @@ services:
|
||||
args:
|
||||
puid: ${USER_ID}
|
||||
pgid: ${GROUP_ID}
|
||||
debug: ${DEBUG:-false}
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user