This commit is contained in:
SergeantPanda 2025-03-04 08:13:27 -06:00
commit 32462672bd
4 changed files with 7 additions and 7 deletions

1
.gitignore vendored
View file

@ -6,3 +6,4 @@ __pycache__/
node_modules/
.history/
staticfiles/
docker/DockerfileAIO

View file

@ -141,7 +141,10 @@ SERVER_IP = "127.0.0.1"
CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOW_CREDENTIALS = True
CSRF_TRUSTED_ORIGINS = ['*']
CSRF_TRUSTED_ORIGINS = [
'http://*',
'https://*'
]
APPEND_SLASH = True
REST_FRAMEWORK = {

View file

@ -24,14 +24,14 @@ schema_view = get_schema_view(
urlpatterns = [
# API Routes
path('api/', include(('apps.api.urls', 'api'), namespace='api')),
path('output/', include('apps.output.urls', namespace='output')),
path('api', RedirectView.as_view(url='/api/', permanent=True)),
# Admin
path('admin', RedirectView.as_view(url='/admin/', permanent=True)), # This fixes the issue
path('admin/', admin.site.urls),
# Outputs
path('output', RedirectView.as_view(url='/output/', permanent=True)), # This fixes the issue
path('output', RedirectView.as_view(url='/output/', permanent=True)),
path('output/', include(('apps.output.urls', 'output'), namespace='output')),
# HDHR

View file

@ -22,11 +22,7 @@ RUN apt-get update && \
git clone https://github.com/Dispatcharr/Dispatcharr /app && \
cd /app && \
pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir -r requirements-pytorch.txt && \
pip install --no-cache-dir -r requirements-sentence-transformers.txt && \
python manage.py collectstatic --noinput && \
echo "installing sentence-transformers" && \
pip install sentence-transformers==3.4.1 && \
cd /app/frontend && \
npm install && \
npm run build && \