Commit Graph

29 Commits

Author SHA1 Message Date
c18090e169
always run collect static 2025-02-17 17:00:54 +07:00
2ec81c7ac7
context manager for yt-dlp extract, stricter worker recycle 2025-02-02 15:45:40 +07:00
ff439a996f
handle migration and restore 2025-01-15 21:53:54 +07:00
bc74bf80f4
run pre-commit on all 2025-01-06 21:08:51 +07:00
7dcef45b97
replace uwsgi with uvicorn 2024-12-23 21:53:27 +07:00
e18f176759
add paths for library static files 2024-12-21 09:58:41 +07:00
Merlin
83bb7f678b
DRAFT: Add Tubearchivist Frontend React dev docker setup (#768)
* Add development docker-compose file

* Add /new/ path in nginx conf

* Add frontend production setup

* Fix lint

* Refac move prod docker compose into non suffixed file

* Fix run.sh fileendings on windows

* Fix docker file naming consistancies

* Add frontend dev setup

* Add docker compose dev command

* Refac remove docker network

* Fix potential error causes

* Chore update react-router-dom

* Add redirect to login after logout

* Refac allow basic auth for session login in api

* Fix loginresponsetype optional property

* Refac move isAdmin check into page Base

* Refac use node lts for dev container

* Refac remove old setup in readme

* Refac move getisAdmin into loader and rename

* Refac remove manual csrf cookie handing from actions and loader

* Fix post requiring csrf header & cookie

* Fix remove empty files

* Refac revert dockerfile changes

* Refac revert gitatrributes changes

* Refac revert docker changes

* Refac revert nginx changes

* Refac revert docker change

* Refac move frontend into frontend folder

* Add production steps to dockerfile

* Refac implement endpoint renaming

* Refac remove frontend dockerfile

* Add credentials include for dev env

* Fix allow cors with credentials for dev environment

* Fix images in dev mode

* Add credentials for dev mode to all loader and actions, except signin

* Revert cors config

* Revert cors config

* Fix nginx not serving /youtube/

* Fix video url missing api

* Fix media url missing api

* Add application settings page

* Add continue vids

* Add csrf to delete requests

* Refac use api/video endpoint with filter to home, channel, playlist pages

* Add channel nav request

* Add channel playlists

* Fix filterbar for playlist in channel

* Add playlist_nav to video page

* Add downloads aggs

* Refac remove basic auth

* Fix credentials include in signin

* Refac user config to user me config

* Add ApiToken get
2024-08-11 00:53:50 +07:00
d6fc78d3b4
clean up, consolidate config.json, celery hooks 2024-07-22 22:53:45 +02:00
Simon
9366b8eab9
Feature beat model (#713)
* add django-celery-beat

* implement schedule migration

* fix version_check migration

* remove old schedule init

* better schedule migration

* fix task_config migration

* show task config on settings page

* fix notify url builder

* refactor celery initiation

* fix get task

* fix scheduler mig

* fix linter

* better task_config store on periodic task

* save new schedules

* fix task_config extraction from custom model

* implement auto schedule

* implement schedule delete

* refactor notifications to ES config storage

* downgrade redis

* better notification migration to ES

* add notification url handling

* fix worker start

* fix docs spelling

* don't resend form data on notification refresh

* fix type hints

* move TASK_CONFIG to separate module

* fix partial task config imports

* fix yt_obs typing

* delete schedule

* remove outdated instructions

* create initial schedules

* fix reindex days config key

* fix doc string

* unregister BeatModels
2024-05-09 20:22:36 +07:00
33ecd73137
ffmpeg download script, separate build step 2024-04-22 17:49:26 +02:00
e512329599
remove migpath call at startup, #687 2024-04-03 16:40:16 +02:00
PhuriousGeorge
49659322a1
Limit worker lifespan - RAM useage mitigation (#644)
Limit worker lifespan to save our precious RAM as discussed on [Discord](https://discord.com/channels/920056098122248193/1179480913701241002/1180026088802496512)

Mitigates #500 though RAM usage can still ramp rather high before worker is culled
2024-01-15 09:12:44 +07:00
868247e6d4
add startup folder migration command 2023-05-20 19:30:40 +07:00
a350d735be
commit migrations 2023-02-02 14:19:06 +07:00
d6c124aae8
collectstatic if not in debug 2023-02-02 13:12:12 +07:00
08350181f3
create ta_startup manage.py command 2023-02-02 12:43:02 +07:00
1b5a810520
finalize connection check manage.py command 2023-02-01 16:05:29 +07:00
cacf6e43b8
add envcheck and basic connection check startup command 2023-01-28 08:37:58 +07:00
f45a3095cb
fix cast, use ENABLE_CAST env var to enable, #331 2022-12-19 14:43:10 +07:00
ac79ce91da
verbose curl ES connection fail output 2022-08-19 18:51:16 +07:00
115db944c8
add curl output for failed es connection 2022-08-18 18:35:09 +07:00
d065b5b90a
reduce uwsgi logging to errors only 2022-07-18 17:17:20 +07:00
0528220b5e
authenticate media and thumb requests 2022-07-18 14:10:34 +07:00
3b17c01c6d
add TA_HOST env for ALLOWED_HOSTS 2022-07-14 17:26:10 +07:00
Dave Shoreman
e9619c1242
Fix repeated superuser creations after rename/removal (#263)
* Avoid creating superuser if variables are removed

Enables the removal of `TA_USERNAME` and/or `TA_PASSWORD` as a way of
preventing an additional superuser being created when another exists.

In the old code, `ELASTIC_USER` would never error due to the default, so
this replaces the loop with one requirement on `ELASTIC_PASSWORD`.

* Use .superuser_created to prevent re-creation

Creates an empty `.superuser_created` file after successful creation,
and uses this to skip the command on future runs. If the file doesn't
exist, then `TA_USERNAME` and `TA_PASSWORD` will also be required.

* The superuser password can't be empty

...well—it *can*—but the password input of the login form requires a
value so even though the account is created, you can't actually login.

* Parse createsuperuser output for 'exists' error

If a user already exists with the same name as the superuser being
created, the command fails with "Error: That name is already taken".

It's probably safe to assume that user is the one we expect. This parses
the output, treating it as successful so it can be skipped next time.

If it hits the catch-all, something probably failed so we exit.

* Use the cache for persistence

Updates the .superuser_created file to be placed in /cache so that it
gets persisted in a volume between config tweaks and container rebuilds.

Also makes `TA_PASSWORD` required always, because it seems to be needed
by tubearchivist/config/settings.py to generate a secret key.

* Let it work outside Docker

If /cache doesn't exist (i.e. when it's not running in Docker), this
falls back to a `cache` dir in the current working directory instead.

Also renames the file to 'initsu.lock' rather than having it hidden.

* Use flexible fallback path for `celery` command
2022-06-22 18:29:46 +07:00
Lickitysplitted
3ae9fe5405
Modify Dockerfile and the nginx.conf file to avoid Nginx default conf… (#203)
* Modify Dockerfile and the nginx.conf file to avoid Nginx default config IPv6 conflict.

* Adjust nginx.conf name and run.sh nginx modification.

* but nginx.conf file back

Co-authored-by: simon <simobilleter@gmail.com>
2022-04-01 11:43:24 +07:00
Nathan DeTar
385d6bace8
Fix cast support to handle new video tag format. (#169)
* Added subtitle support to JS player.

* Move `video-item` id to source tag.

* Move `video-item` id to source tag.

* Fix cast support to handle new video tag format

* Add subtitle support to cast integration, WIP

* Replace `&amp` with `&` in video titles.

* Check if the video is already marked as watched

* Switch to HTML watched check.
2022-02-12 19:08:19 +07:00
b93a6f689b
remove previous bug workaround to set django debug env, #159 2022-01-27 14:49:22 +07:00
2eea07c85e
organize docker conf files 2022-01-26 20:05:52 +07:00