Commit Graph

56 Commits

Author SHA1 Message Date
Mitchell Syer
9b66814d96 Add more fixes to config management (#167) 2025-09-08 12:20:59 -04:00
Syer10
ccf642ff49 Fix quotes on flavor 2025-09-04 15:17:01 -04:00
Mitchell Syer
4ce1538636 Fix enum quotes (#163)
* Fix enum quotes

* Try this one

* Use stars
2025-09-04 15:14:00 -04:00
Mitchell Syer
f5dce5a890 Fix Enums Without Quotes (#161)
* Fix enums without quotes

* Fix underline
2025-09-02 16:09:39 -04:00
Mitchell Syer
a8d8475de0 Database Configuration (#160) 2025-09-02 12:54:06 -04:00
Syer10
5c6ea7286f Add new JWT variables 2025-08-20 18:39:37 -04:00
are-are-are
253f34cf98 Fix koreaderSyncPercentageTolerance has type STRING rather than NUMBER (#156)
If restart Docker Suwayomi Preview. The issue is caused by line 94 server.conf will become server.koreaderSyncPercentageTolerance = "0.0000000000001" instead of 0.00000000000001
2025-08-20 07:05:19 -04:00
Syer10
d263d1ef55 Fix wrapping of values 2025-08-19 17:20:00 -04:00
Syer10
9568818ce3 Show contents of server.conf for testing 2025-08-19 17:13:09 -04:00
Syer10
79a85c83ec Fix KOReaderSyncServerUrl format 2025-08-19 17:04:58 -04:00
Syer10
fd7a1d92c7 Add new KOReader variables and missing existing ones 2025-08-19 15:30:16 -04:00
Constantin Piber
f4e7901eba Remove CEF lock on startup (#151) 2025-07-15 16:09:35 -04:00
Mitchell Syer
9370334fa6 Add downloadConversions (#149) 2025-07-14 18:24:34 -04:00
Mitchell Syer
e4a8a7d841 Fix sed for new variables (#144)
* Minor change

* Add echo ""
2025-07-06 13:43:25 -04:00
Constantin Piber
caeaff6196 Move command to correct branch (#143) 2025-07-06 12:54:20 -04:00
Constantin Piber
ea7a79e50a Switch to xvfb-run instead of manually calling Xvfb (#141)
This should ensure it always finds a display number. It also makes sure
to properly kill `Xvfb`, which we did not do before.
2025-07-06 12:48:38 -04:00
Syer10
fe65ce8873 Add support for new auth variables 2025-07-06 12:48:19 -04:00
Constantin Piber
1e7c775741 Remove lock of dead Xvfb instances on start (#139)
When restarting the container, `Xvfb` is killed quite rudely, so it doesn't have time to clean up the lock. This means that on subsequent starts (without recreating the container), `Xvfb` refuses to start and thus the WebView fails.
2025-07-02 13:20:04 -04:00
Constantin Piber
5aa35914a5 C: handler for abort (#135)
* C: handler for abort

CEF will kill the thread if the GPU process cannot be created. This
brings down Suwayomi with it, so instead just kill the thread and inform
Java about the exception.

* Two-stage build to download an build catch_abort

Building JNI extensions requires JDK, but we don't need it at runtime,
so create a build-step based on JDK, then copy the built binary over

* Add catch handler to github action
2025-06-21 12:29:59 -04:00
Constantin Piber
eb9e13a432 Startup: Attempt to make JCEF executable on start (#136) 2025-06-21 08:59:50 -04:00
Constantin Piber
55715f4f85 Fix: don't try to link KCEF when it's not downloaded (#134) 2025-06-20 19:22:50 -04:00
Constantin Piber
9844dbcde3 Download JCEF at docker build step (#132)
* Add `LD_PRELOAD` to startup script

Closes #131

* Script to download and extract a JCEF release

Closely mirrors what KCEF does, but written in glorious AWK

* Call kcef_download and link downloaded JCEF where Suwayomi expects it

The script downloads JCEF into /opt. Link this folder at runtime into
the data folder where Suwayomi expects it. This allows us to easily
bundle the predownloaded release without modifying Suwayomi startup.
Move `LD_PRELOAD` down a bit to avoid warnings about preloading
libcef.so before the symlink exists.

* Add KCEF url to workflow to embed JCEF into container
2025-06-20 12:38:23 -04:00
Constantin Piber
d037f190e7 Merge builds again, use BUILDPLATFORM to decide KCEF (#130)
* Merge builds again, use BUILDPLATFORM to decide

* BUILDPLATFORM -> TARGETPLATFORM
2025-06-12 15:11:36 -04:00
Constantin Piber
db1d8b99a1 Remove KCEF from unsupported containers (#129)
* Introduce Build arg to include KCEF or not

* GH CI separate containers where KCEF is not supported
2025-06-12 14:26:16 -04:00
Constantin Piber
25c619a9fe Support KCEF (#127)
* Support KCEF

Install native dependencies required by JCEF
Sets up JNI libraries as required by the browser process
Launch Suwayomi in a XVFB environment to fake X11

* Copy libraries to home folder instead

Otherwise, other architectures are not supported

Search path is :
[/usr/java/packages/lib/libnativewindow_awt.so, /usr/lib64/libnativewindow_awt.so, /usr/lib64/libnativewindow_awt.so, /usr/lib/libnativewindow_awt.so, /usr/lib/libnativewindow_awt.so, /home/suwayomi/libnativewindow_awt.so, /home/suwayomi/natives/linux-amd64/libnativewindow_awt.so]
2025-06-12 11:37:54 -04:00
Mitchell Syer
bfc3b6cbfe opdsUseBinaryFileSizes 2025-05-27 01:06:20 +00:00
Mitchell Syer
161c09a025 Opds 2025-05-22 23:55:05 +00:00
Mitchell Syer
1a86648df9 Remove GQL_DEBUG 2024-11-18 02:10:54 +00:00
Mitchell Syer
7ccf93ed15 Ignore Reuploads (#97)
* Ignore Reuploads

* Add Test
2024-04-06 23:51:48 -04:00
schroda
7b672f8a99 Fix/overwriting settings with comments with extension variables (#95)
* Overwrite config settings with comments correctly

Comments were either removed or broke the setting value due to incorrect formatting

* Fix "webUIEnabled" env var name

* Delete container only after receiving its logs

Due to the "-rm" option when starting the container, it was immediately deleted after it was stopped.
This prevented the workflow from getting the containers logs since it didn't exist anymore at this point of time and instead an error was raised

* Print container logs in case of failure

* Add a workflow step to test the container with passing env vars
2024-03-10 19:22:57 -04:00
Madray Haven
7260f8ac6b fix: #92 (#93) 2024-02-24 12:18:22 -05:00
Syer10
382209be67 Fix BackupTime attempt 3 2024-02-19 11:29:25 -05:00
Mitchell Syer
53a6222007 Fix BackupTime attempt 2 2024-02-19 11:26:43 -05:00
Mitchell Syer
0e25faaaef Fix BackupTime 2024-02-19 11:20:43 -05:00
Mitchell Syer
a22f42b610 Download new chapters (#91) 2024-02-17 11:38:42 -05:00
schroda
a2dcd0eda8 Handle overwriting config setting with unescaped falresolverr url in env var (#84) 2024-01-28 22:55:26 -05:00
Mitchell Syer
20faf4f3b6 [skip ci] Add FlareSolverSession (#82) 2024-01-24 21:11:19 -05:00
Syer10
d924caaf27 Retry FlareSolverr url fix 2 2024-01-23 20:27:58 -05:00
Syer10
e33afc16c2 Retry FlareSolverr url fix 2024-01-23 20:13:12 -05:00
Syer10
ee9b536106 Revert "Revert fix unescaped urls"
This reverts commit 59a299522a.
2024-01-23 20:04:08 -05:00
Syer10
59a299522a Revert fix unescaped urls 2024-01-23 20:03:18 -05:00
Mitchell Syer
589596e84d Fix unescaped urls (#80) 2024-01-23 19:29:53 -05:00
Mitchell Syer
8f247bb5d2 Support FlareSolverr (#79)
* Update startup_script.sh

* Update README.md
2024-01-23 18:49:14 -05:00
schroda
d93e8c3c1a Overwrite server.conf settings only for provided env vars (#76)
* Overwrite server.conf settings only for provided env vars

Currently on every start the whole server.conf file gets replaced which causes any changed settings during runtime to get lost

* Fix readme formatting

* Add "webUIEnabled" env variable

This is the only setting that can not be changed via the UI

* Remove default values from readme
2024-01-21 11:57:59 -05:00
Chance Zibolski
81ee2a71e2 Set user.home property and remove /etc/passwd modifications (#75)
If we explicitly set the user.home property, then Java doesn't consult
/etc/passwd to determine $HOME, fixing the problems that necessitated
updating /etc/passwd in the first place.

Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
2024-01-19 17:05:07 -05:00
Chance Zibolski
fa96e50161 Support running as alternative UID/GID (#74)
Because we use the Java user.home property to get the default
configuration directory, there needs to be an entry for the correct user
in /etc/passwd. For this to work with arbitrary UID/GID, that means
updating /etc/shadow dynamically based on the UID/GID in the container
before starting the application.

Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
2024-01-18 20:10:10 -05:00
Mitchell Syer
05c4fd32ab Support custom repos 2024-01-06 01:11:52 +00:00
Mitchell Syer
233b89a0b1 Update Configuration Options (#65)
* Update Configuration

* Fix defualt auto download ahead limit in readme
2023-12-08 18:48:23 -05:00
vodkapmp
2f09862166 Update config autodownload (#62)
* Update server.conf.template

* Update startup_script.sh

* Update README.md
2023-10-30 19:48:31 -04:00
Mitchell Syer
741765aadd Update Config with latest Server Config (#46)
* Update server.conf.template

* Update startup_script.sh

* Update startup_script.sh

* Update server.conf.template

* Update README.md

* Update README.md

* Update README.md
2023-08-15 17:45:45 -04:00