mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Merge branch 'main' of https://github.com/SergeantPanda/Dispatcharr into Proxy
This commit is contained in:
commit
32462672bd
4 changed files with 7 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -6,3 +6,4 @@ __pycache__/
|
|||
node_modules/
|
||||
.history/
|
||||
staticfiles/
|
||||
docker/DockerfileAIO
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 && \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue