mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
fix from albumView to other routes bug
- add nginx sites - add setup script (untested**)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
server { listen 8901;
|
||||
|
||||
location / { root /home/cwilvx/; autoindex on; sendfile off; } }
|
||||
@@ -0,0 +1,3 @@
|
||||
server { listen 8900;
|
||||
|
||||
location /images/ { root /home/cwilvx/.musicx/; autoindex on; sendfile on; } }
|
||||
@@ -0,0 +1,5 @@
|
||||
# 1. copy sites configs
|
||||
# 2. create symbolic links for each file in sites-available to sites-enable
|
||||
|
||||
sudo cp ./nginx-sites/* /etc/nginx/sites-available
|
||||
sudo ln -s /etc/nginx/sites-available/* /etc/nginx/sites-enabled -f
|
||||
@@ -0,0 +1,19 @@
|
||||
# 1. install nginx
|
||||
# 2. install mongodb
|
||||
|
||||
# commands to install and start mongodb ubuntu 20.04
|
||||
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
|
||||
sudo apt-get install gnupg
|
||||
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
|
||||
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y mongodb
|
||||
|
||||
sudo systemctl start mongodb
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable mongodb
|
||||
|
||||
# commands to install and start nginx ubuntu 20.04
|
||||
sudo apt-get install nginx
|
||||
sudo systemctl start nginx
|
||||
sudo systemctl enable nginx
|
||||
Reference in New Issue
Block a user