From b2caa3750829dd262f90955b4b26c108bed58d31 Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Thu, 29 Dec 2022 21:53:49 +0100 Subject: [PATCH 1/2] config useragent and accept in .env --- conf/.env.local.example | 6 ++---- scripts/install | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/conf/.env.local.example b/conf/.env.local.example index 0c23f88..b36a887 100644 --- a/conf/.env.local.example +++ b/conf/.env.local.example @@ -8,10 +8,8 @@ ## used for meta tags. e.g: 'https://libremdb.iket.me'. don't add end slash. NEXT_PUBLIC_URL=https://__DOMAIN__ ## used when fetching data from IMDb. not adding these could result in not getting any response. -## example useragent header: 'Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0' -AXIOS_USERAGENT= -## example accept header: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8' -AXIOS_ACCEPT= +AXIOS_USERAGENT='Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0' +AXIOS_ACCEPT='text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8' ################################################################################ ### 2. OPTIONAL VARS(enabling these is encouraged) diff --git a/scripts/install b/scripts/install index 529f094..cb846c0 100755 --- a/scripts/install +++ b/scripts/install @@ -101,7 +101,7 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1 ynh_add_nginx_config #================================================= -# INSTALL HOMARR +# INSTALL LIBREMDB #================================================= ynh_script_progression --message="Installing The app..." --weight=10 From 77cd4662436067ed26a429f6b09e37dc63d1efce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 29 Dec 2022 23:09:04 +0100 Subject: [PATCH 2/2] Update scripts/install --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index cb846c0..6d4556f 100755 --- a/scripts/install +++ b/scripts/install @@ -103,7 +103,7 @@ ynh_add_nginx_config #================================================= # INSTALL LIBREMDB #================================================= -ynh_script_progression --message="Installing The app..." --weight=10 +ynh_script_progression --message="Building the app..." --weight=20 pushd $final_path ynh_use_nodejs