1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libremdb_ynh.git synced 2024-09-03 19:36:22 +02:00

Merge pull request #1 from rndmh3ro/fixes

config useragent and accept in .env
This commit is contained in:
Éric Gaspar 2022-12-29 23:09:20 +01:00 committed by GitHub
commit 43e34420a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View file

@ -8,10 +8,8 @@
## used for meta tags. e.g: 'https://libremdb.iket.me'. don't add end slash. ## used for meta tags. e.g: 'https://libremdb.iket.me'. don't add end slash.
NEXT_PUBLIC_URL=https://__DOMAIN__ NEXT_PUBLIC_URL=https://__DOMAIN__
## used when fetching data from IMDb. not adding these could result in not getting any response. ## 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='Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0'
AXIOS_USERAGENT= AXIOS_ACCEPT='text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8'
## example accept header: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8'
AXIOS_ACCEPT=
################################################################################ ################################################################################
### 2. OPTIONAL VARS(enabling these is encouraged) ### 2. OPTIONAL VARS(enabling these is encouraged)

View file

@ -101,9 +101,9 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1
ynh_add_nginx_config ynh_add_nginx_config
#================================================= #=================================================
# INSTALL HOMARR # INSTALL LIBREMDB
#================================================= #=================================================
ynh_script_progression --message="Installing The app..." --weight=10 ynh_script_progression --message="Building the app..." --weight=20
pushd $final_path pushd $final_path
ynh_use_nodejs ynh_use_nodejs