mirror of
https://github.com/YunoHost-Apps/archivebox_ynh.git
synced 2024-09-03 18:15:54 +02:00
Merge pull request #6 from YunoHost-Apps/chromium
Add support for chromium-based archivebox snapshots
This commit is contained in:
commit
4adee454d6
9 changed files with 2299 additions and 7 deletions
|
@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
|||
|
||||
A self-hosted internet archiving solution to collect, save, and view sites you want to preserve offline.
|
||||
|
||||
**Shipped version:** 1.6~ynh1
|
||||
**Shipped version:** 1.7~ynh1
|
||||
|
||||
**Demo:** https://archiveboxdemo.commoninternet.net
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
|||
|
||||
|
||||
|
||||
**Version incluse :** 1.6~ynh1
|
||||
**Version incluse :** 1.7~ynh1
|
||||
|
||||
**Démo :** https://archiveboxdemo.commoninternet.net
|
||||
|
||||
|
|
2252
conf/package-lock.json
generated
Normal file
2252
conf/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
13
conf/package.json
Normal file
13
conf/package.json
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"name": "archivebox",
|
||||
"version": "0.6.3",
|
||||
"description": "ArchiveBox: The self-hosted internet archive",
|
||||
"author": "Nick Sweeting <archivebox-npm@sweeting.me>",
|
||||
"repository": "github:ArchiveBox/ArchiveBox",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@postlight/mercury-parser": "^2.2.0",
|
||||
"readability-extractor": "git+https://github.com/ArchiveBox/readability-extractor.git",
|
||||
"single-file": "git+https://github.com/gildas-lormeau/SingleFile.git"
|
||||
}
|
||||
}
|
|
@ -19,7 +19,7 @@ NoNewPrivileges=yes
|
|||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
||||
RestrictNamespaces=yes
|
||||
#RestrictNamespaces=yes
|
||||
RestrictRealtime=yes
|
||||
DevicePolicy=closed
|
||||
ProtectSystem=full
|
||||
|
@ -27,7 +27,7 @@ ProtectControlGroups=yes
|
|||
ProtectKernelModules=yes
|
||||
ProtectKernelTunables=yes
|
||||
LockPersonality=yes
|
||||
SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap
|
||||
#SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap
|
||||
|
||||
# Denying access to capabilities that should not be relevant for webapps
|
||||
# Doc: https://man7.org/linux/man-pages/man7/capabilities.7.html
|
||||
|
|
12
doc/notes-on-updating-archivebox-ynh.md
Normal file
12
doc/notes-on-updating-archivebox-ynh.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
this is documentation for developers working on archivebox_ynh package (or myself in the future),
|
||||
for how to keep this package up to date with the upstream archivebox package on github
|
||||
as it is updated.
|
||||
|
||||
## 1. apt-get dependencies
|
||||
|
||||
Look at Dockerfile in https://github.com/ArchiveBox/ArchiveBox to determine which dependencies
|
||||
need to be specified in scripts/_common.sh
|
||||
|
||||
## 2. node dependencies
|
||||
Copy package.json and package-lock.json from https://github.com/ArchiveBox/ArchiveBox to
|
||||
conf/package.json and conf/package-lock.json respectively.
|
|
@ -6,7 +6,7 @@
|
|||
"en": "A self-hosted internet archiving solution to collect, save, and view sites you want to preserve offline.",
|
||||
"fr": ""
|
||||
},
|
||||
"version": "1.6~ynh1",
|
||||
"version": "1.7~ynh1",
|
||||
"url": "https://archivebox.io/",
|
||||
"upstream": {
|
||||
"license": "MIT",
|
||||
|
|
|
@ -5,8 +5,11 @@
|
|||
#=================================================
|
||||
|
||||
# dependencies used by the app
|
||||
pkg_dependencies="python3-venv expect youtube-dl nodejs np\
|
||||
m"
|
||||
pkg_dependencies="python3-venv expect nodejs npm \
|
||||
apt-transport-https ca-certificates gnupg2 zlib1g-dev dumb-init gosu cron unzip curl \
|
||||
fontconfig fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-symbola fonts-noto fonts-freefont-ttf \
|
||||
wget curl chromium git ffmpeg youtube-dl ripgrep \
|
||||
build-essential python-dev python3-dev"
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
|
|
|
@ -132,6 +132,13 @@ chown -R "$app" "$final_path"
|
|||
# we use this virtualenv archivebox for further commands now
|
||||
archivebox_cmd="$final_path/venv/bin/archivebox"
|
||||
|
||||
#=================================================
|
||||
# INSTALL NODE DEPENDENCIES
|
||||
#=================================================
|
||||
cp ../conf/package.json "$final_path/package.json"
|
||||
cp ../conf/package-lock.json "$final_path/package-lock.json"
|
||||
cd $final_path; npm ci
|
||||
|
||||
#=================================================
|
||||
# CREATE DATA DIRECTORY
|
||||
#=================================================
|
||||
|
@ -147,6 +154,11 @@ chmod 750 "$datadir"
|
|||
chmod -R o-rwx "$datadir"
|
||||
chown -R $app:www-data "$datadir"
|
||||
|
||||
#=================================================
|
||||
# CREATE ARCHIVEBOX CONFIG
|
||||
#=================================================
|
||||
|
||||
|
||||
#=================================================
|
||||
# INITIALIZE ARCHIVEBOX
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue