forked from axiom-team/astrXbian
better install, need adapt with php-fpm.sock
This commit is contained in:
parent
f167d5842b
commit
353cf70457
|
@ -21,15 +21,10 @@ sudo apt-get install mariadb-server nginx python3-certbot-nginx certbot ssl-cert
|
|||
|
||||
#######################################################################
|
||||
## CREATE symlinks for ~/.zen/www/swarm & me
|
||||
mkdir -p ~/.zen/www/boris && cd ~/.zen/www/boris
|
||||
mkdir -p ~/.zen/astrXbian/www/boris && cd ~/.zen/astrXbian/www/boris
|
||||
ln -s ../ipfs_swarm swarm
|
||||
ln -s ../ipfs me
|
||||
|
||||
########################################################################
|
||||
## ACTIVATE sites-available/astroport
|
||||
cd /etc/nginx/sites-enabled
|
||||
sudo ln -s ../sites-available/astroport astroport
|
||||
|
||||
########################################################################
|
||||
## CREATE site config file
|
||||
printf "
|
||||
|
@ -37,16 +32,16 @@ server {
|
|||
listen 10111 default_server;
|
||||
listen [::]:10111 default_server;
|
||||
|
||||
root " | sudo tee /etc/nginx/sites-available/astroport
|
||||
root " | sudo tee /etc/nginx/sites-available/tube.copylaradio.com
|
||||
|
||||
printf ~/.zen/www/boris | sudo tee -a /etc/nginx/sites-available/astroport
|
||||
printf root /home/$YOU/.zen/astrXbian/www/boris | sudo tee -a /etc/nginx/sites-available/tube.copylaradio.com
|
||||
|
||||
printf ";
|
||||
|
||||
# Add index.php to the list if you are using PHP
|
||||
index index.html index.htm index.nginx-debian.html;
|
||||
|
||||
server_name _;
|
||||
server_name tube.copylaradio.com;
|
||||
|
||||
location / {
|
||||
# First attempt to serve request as file, then
|
||||
|
@ -54,7 +49,6 @@ printf ";
|
|||
try_files \$uri \$uri/ =404;
|
||||
}
|
||||
|
||||
|
||||
index index.php;
|
||||
|
||||
# pass PHP scripts to FastCGI server
|
||||
|
@ -67,5 +61,23 @@ printf ";
|
|||
# With php-cgi (or other tcp sockets):
|
||||
#fastcgi_pass 127.0.0.1:9000;
|
||||
}
|
||||
|
||||
location /ipfs {
|
||||
proxy_pass http://127.0.0.1:8181;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
}
|
||||
" | sudo tee -a /etc/nginx/sites-available/astroport
|
||||
|
||||
location /ipns {
|
||||
proxy_pass http://127.0.0.1:8181;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
}
|
||||
|
||||
}
|
||||
" | sudo tee -a /etc/nginx/sites-available/tube.copylaradio.com
|
||||
|
||||
########################################################################
|
||||
## ACTIVATE sites-available/tube.copylaradio.com
|
||||
cd /etc/nginx/sites-enabled
|
||||
sudo ln -s ../sites-available/tube.copylaradio.com tube.copylaradio.com
|
||||
|
|
Loading…
Reference in New Issue