mirror of
https://github.com/YunoHost-Apps/readarr_ynh.git
synced 2024-09-03 20:16:17 +02:00
commit
1777ad9bef
9 changed files with 44 additions and 50 deletions
|
@ -16,19 +16,17 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Readarr is an ebook and audiobook collection manager for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new books from your favorite authors and will grab, sort, and rename them. Note that only one type of a given book is supported. If you want both an audiobook and ebook of a given book you will need multiple instances.
|
Readarr is an eBook and audiobook collection manager for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new books and will interface with clients and indexers to grab, sort, and rename them. It can also be configured to automatically upgrade the quality of existing files in the library when a better quality format becomes available. It does not manage comics or magazines.
|
||||||
|
|
||||||
**Shipped version:** 0.3.6.2232~ynh1
|
**Shipped version:** 0.3.6.2232~ynh1
|
||||||
|
|
||||||
**Demo:** https://demo.example.com
|
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
* Official app website: <https://example.com>
|
* Official app website: <https://readarr.com/>
|
||||||
* Official admin documentation: <https://wiki.servarr.com/readarr/installation/linux>
|
* Official admin documentation: <https://wiki.servarr.com/readarr/installation/linux>
|
||||||
* Upstream app code repository: <https://github.com/Readarr/Readarr>
|
* Upstream app code repository: <https://github.com/Readarr/Readarr>
|
||||||
* Report a bug: <https://github.com/YunoHost-Apps/readarr_ynh/issues>
|
* Report a bug: <https://github.com/YunoHost-Apps/readarr_ynh/issues>
|
||||||
|
|
|
@ -21,15 +21,13 @@ Readarr est un gestionnaire de collections de livres électroniques et de livres
|
||||||
|
|
||||||
**Version incluse :** 0.3.6.2232~ynh1
|
**Version incluse :** 0.3.6.2232~ynh1
|
||||||
|
|
||||||
**Démo :** https://demo.example.com
|
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l’app : <https://example.com>
|
* Site officiel de l’app : <https://readarr.com/>
|
||||||
* Documentation officielle de l’admin : <https://wiki.servarr.com/readarr/installation/linux>
|
* Documentation officielle de l’admin : <https://wiki.servarr.com/readarr/installation/linux>
|
||||||
* Dépôt de code officiel de l’app : <https://github.com/Readarr/Readarr>
|
* Dépôt de code officiel de l’app : <https://github.com/Readarr/Readarr>
|
||||||
* Signaler un bug : <https://github.com/YunoHost-Apps/readarr_ynh/issues>
|
* Signaler un bug : <https://github.com/YunoHost-Apps/readarr_ynh/issues>
|
||||||
|
|
17
conf/config.xml
Normal file
17
conf/config.xml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<Config>
|
||||||
|
<LogLevel>info</LogLevel>
|
||||||
|
<BindAddress>127.0.0.1</BindAddress>
|
||||||
|
<EnableSsl>False</EnableSsl>
|
||||||
|
<SslCertPath></SslCertPath>
|
||||||
|
<Port>__PORT__</Port>
|
||||||
|
<UrlBase>__PATH__</UrlBase>
|
||||||
|
<ApiKey>__API_KEY__</ApiKey>
|
||||||
|
<AuthenticationMethod>None</AuthenticationMethod>
|
||||||
|
<UpdateMechanism>BuiltIn</UpdateMechanism>
|
||||||
|
<Branch>develop</Branch>
|
||||||
|
<SslPort>__PORT__</SslPort>
|
||||||
|
<LaunchBrowser>False</LaunchBrowser>
|
||||||
|
<SslCertPassword></SslCertPassword>
|
||||||
|
<AnalyticsEnabled>False</AnalyticsEnabled>
|
||||||
|
<InstanceName>Readarr</InstanceName>
|
||||||
|
</Config>
|
|
@ -13,7 +13,7 @@ location __PATH__/ {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Allow the API External Access via NGINX
|
# Allow the API External Access via NGINX
|
||||||
location ^~ /readarr/api {
|
location ^~ __PATH__/api {
|
||||||
auth_basic off;
|
auth_basic off;
|
||||||
proxy_pass http://127.0.0.1:__PORT__;
|
proxy_pass http://127.0.0.1:__PORT__;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Radarr Daemon
|
Description=Readarr Daemon
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -7,44 +7,10 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__INSTALL_DIR__/
|
WorkingDirectory=__INSTALL_DIR__/
|
||||||
ExecStart=__INSTALL_DIR__/Readarr -nobrowser -data=__DATA_DIR__
|
ExecStart=__INSTALL_DIR__/Readarr -nobrowser -data=__DATA_DIR__/
|
||||||
TimeoutStopSec=20
|
TimeoutStopSec=20
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
# Sandboxing options to harden security
|
|
||||||
# Depending on specificities of your service/app, you may need to tweak these
|
|
||||||
# .. but this should be a good baseline
|
|
||||||
# Details for these options: https://www.freedesktop.org/software/systemd/man/systemd.exec.html
|
|
||||||
NoNewPrivileges=yes
|
|
||||||
PrivateTmp=yes
|
|
||||||
PrivateDevices=yes
|
|
||||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
|
||||||
RestrictNamespaces=yes
|
|
||||||
RestrictRealtime=yes
|
|
||||||
DevicePolicy=closed
|
|
||||||
ProtectClock=yes
|
|
||||||
ProtectHostname=yes
|
|
||||||
ProtectProc=invisible
|
|
||||||
ProtectSystem=full
|
|
||||||
ProtectControlGroups=yes
|
|
||||||
ProtectKernelModules=yes
|
|
||||||
ProtectKernelTunables=yes
|
|
||||||
LockPersonality=yes
|
|
||||||
SystemCallArchitectures=native
|
|
||||||
SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap @cpu-emulation @privileged
|
|
||||||
|
|
||||||
# Denying access to capabilities that should not be relevant for webapps
|
|
||||||
# Doc: https://man7.org/linux/man-pages/man7/capabilities.7.html
|
|
||||||
CapabilityBoundingSet=~CAP_RAWIO CAP_MKNOD
|
|
||||||
CapabilityBoundingSet=~CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_AUDIT_WRITE
|
|
||||||
CapabilityBoundingSet=~CAP_SYS_BOOT CAP_SYS_TIME CAP_SYS_MODULE CAP_SYS_PACCT
|
|
||||||
CapabilityBoundingSet=~CAP_LEASE CAP_LINUX_IMMUTABLE CAP_IPC_LOCK
|
|
||||||
CapabilityBoundingSet=~CAP_BLOCK_SUSPEND CAP_WAKE_ALARM
|
|
||||||
CapabilityBoundingSet=~CAP_SYS_TTY_CONFIG
|
|
||||||
CapabilityBoundingSet=~CAP_MAC_ADMIN CAP_MAC_OVERRIDE
|
|
||||||
CapabilityBoundingSet=~CAP_NET_ADMIN CAP_NET_BROADCAST CAP_NET_RAW
|
|
||||||
CapabilityBoundingSet=~CAP_SYS_ADMIN CAP_SYS_PTRACE CAP_SYSLOG
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Readarr is an ebook and audiobook collection manager for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new books from your favorite authors and will grab, sort, and rename them. Note that only one type of a given book is supported. If you want both an audiobook and ebook of a given book you will need multiple instances.
|
Readarr is an eBook and audiobook collection manager for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new books and will interface with clients and indexers to grab, sort, and rename them. It can also be configured to automatically upgrade the quality of existing files in the library when a better quality format becomes available. It does not manage comics or magazines.
|
|
@ -13,11 +13,10 @@ maintainers = ["eric_G"]
|
||||||
|
|
||||||
[upstream]
|
[upstream]
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
website = "https://example.com"
|
website = "https://readarr.com/"
|
||||||
demo = "https://demo.example.com"
|
|
||||||
admindoc = "https://wiki.servarr.com/readarr/installation/linux"
|
admindoc = "https://wiki.servarr.com/readarr/installation/linux"
|
||||||
code = "https://github.com/Readarr/Readarr"
|
code = "https://github.com/Readarr/Readarr"
|
||||||
fund = "https://readarr.com/donate"
|
fund = "https://opencollective.com/readarr"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.2"
|
yunohost = ">= 11.2"
|
||||||
|
@ -62,9 +61,9 @@ ram.runtime = "50M"
|
||||||
[resources.permissions]
|
[resources.permissions]
|
||||||
main.url = "/"
|
main.url = "/"
|
||||||
api.url = "/api"
|
api.url = "/api"
|
||||||
api.show_tile = false
|
|
||||||
api.allowed = "visitors"
|
api.allowed = "visitors"
|
||||||
api.auth_header = false
|
api.show_tile = false
|
||||||
|
api.protected = true
|
||||||
|
|
||||||
[resources.ports]
|
[resources.ports]
|
||||||
main.default = 8787
|
main.default = 8787
|
||||||
|
|
|
@ -47,6 +47,16 @@ yunohost service add $app --description="Book Manager and Automation" --log="/va
|
||||||
#chmod 400 "$install_dir/some_config_file"
|
#chmod 400 "$install_dir/some_config_file"
|
||||||
#chown $app:$app "$install_dir/some_config_file"
|
#chown $app:$app "$install_dir/some_config_file"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# ADD A CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Configuring $app..." --weight=2
|
||||||
|
|
||||||
|
api_key=$(ynh_string_random --length=32)
|
||||||
|
ynh_app_setting_set --app=$app --key=api_key --value=$api_key
|
||||||
|
|
||||||
|
ynh_add_config --template="../conf/config.xml" --destination="$data_dir/config.xml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -3,3 +3,9 @@
|
||||||
test_format = 1.0
|
test_format = 1.0
|
||||||
|
|
||||||
[default]
|
[default]
|
||||||
|
|
||||||
|
# ------------
|
||||||
|
# Tests to run
|
||||||
|
# ------------
|
||||||
|
|
||||||
|
exclude = ["install.multi"]
|
Loading…
Add table
Reference in a new issue