Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
location __PATH__/ {

# Path to source
alias __INSTALL_DIR__/dist/;
index index.html;
alias __INSTALL_DIR__/;
index tools.html;

try_files $uri $uri/ /index.html;
try_files $uri $uri/ /tools.html;

# Cache static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|wasm)$ {
Expand Down
18 changes: 9 additions & 9 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ multi_instance = true
ldap = false
sso = false

disk = "2000M"
ram.build = "3000M"
disk = "250M"
ram.build = "0M"
ram.runtime = "150M"

[install]
Expand All @@ -43,10 +43,13 @@ ram.runtime = "150M"
[resources.sources]

[resources.sources.main]
url = "https://github.com/alam00000/bentopdf/archive/refs/tags/v2.2.1.tar.gz"
sha256 = "8eb091ea27fc451f832999486ad6281eddafd17086197e3d2f8af09e0595a547"

autoupdate.strategy = "latest_github_tag"
url = "https://github.com/alam00000/bentopdf/releases/download/v2.2.1/dist-2.2.1.zip"
sha256 = "6e9aed3c6e4815145d7a283834782a006dd4ad52a8de7eb0e4dd91ca4f5406b7"
format = "zip"
extract = true
in_subdir = false
autoupdate.strategy = "latest_github_release"
autoupdate.asset = "dist-*.zip"

[resources.system_user]

Expand All @@ -55,6 +58,3 @@ ram.runtime = "150M"

[resources.permissions]
main.url = "/"

[resources.nodejs]
version = "22"
11 changes: 0 additions & 11 deletions scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,7 @@ ynh_script_progression "Adding system configurations related to $app..."
# Create a dedicated NGINX config using the conf/nginx.conf template
ynh_config_add_nginx

#=================================================
# INSTALL BENTOPDF
#=================================================
ynh_script_progression "Installing the app..."

pushd "$install_dir"
ynh_hide_warnings ynh_exec_as_app npm install
ynh_hide_warnings ynh_exec_as_app SIMPLE_MODE=true npm run build
popd

#=================================================
# END OF SCRIPT
#=================================================

ynh_script_progression "Installation of $app completed"
10 changes: 0 additions & 10 deletions scripts/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@ ynh_script_progression "Upgrading system configurations related to $app..."

ynh_config_add_nginx

#=================================================
# INSTALL BENTOPDF
#=================================================
ynh_script_progression "Installing the app..."

pushd "$install_dir"
ynh_hide_warnings ynh_exec_as_app npm install
ynh_hide_warnings ynh_exec_as_app SIMPLE_MODE=true npm run build
popd

#=================================================
# END OF SCRIPT
#=================================================
Expand Down