mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-11 09:54:36 +00:00
BookLore: Fix Nginx config (#7155)
This commit is contained in:
parent
497622832e
commit
444cbc2aa1
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,7 @@ cat <<EOF >/opt/booklore_storage/.env
|
||||||
DATABASE_URL=jdbc:mariadb://localhost:3306/$DB_NAME
|
DATABASE_URL=jdbc:mariadb://localhost:3306/$DB_NAME
|
||||||
DATABASE_USERNAME=$DB_USER
|
DATABASE_USERNAME=$DB_USER
|
||||||
DATABASE_PASSWORD=$DB_PASS
|
DATABASE_PASSWORD=$DB_PASS
|
||||||
|
BOOKLORE_PORT=6060
|
||||||
|
|
||||||
BOOKLORE_DATA_PATH=/opt/booklore_storage/data
|
BOOKLORE_DATA_PATH=/opt/booklore_storage/data
|
||||||
BOOKLORE_BOOKS_PATH=/opt/booklore_storage/books
|
BOOKLORE_BOOKS_PATH=/opt/booklore_storage/books
|
||||||
|
@ -75,6 +76,7 @@ msg_info "Configure Nginx"
|
||||||
rm -rf /usr/share/nginx/html
|
rm -rf /usr/share/nginx/html
|
||||||
ln -s /opt/booklore/booklore-ui/dist/booklore/browser /usr/share/nginx/html
|
ln -s /opt/booklore/booklore-ui/dist/booklore/browser /usr/share/nginx/html
|
||||||
cp /opt/booklore/nginx.conf /etc/nginx/nginx.conf
|
cp /opt/booklore/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
sed -i "s/listen \${BOOKLORE_PORT};/listen 6060;/" /etc/nginx/nginx.conf
|
||||||
systemctl restart nginx
|
systemctl restart nginx
|
||||||
msg_ok "Configured Nginx"
|
msg_ok "Configured Nginx"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue