Vendredi 23 novembre 2018

Libresonic

https://libresonic.github.io/docs/install/prerequisites/ https://www.digitalocean.com/community/tutorials/install-tomcat-9-debian-9 http://libresonic.github.io/docs/install/war/

sudo apt install openjdk-8-jre sudo groupadd tomcat sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat cd /tmp sudo apt install curl curl -O http://www-eu.apache.org/dist/tomcat/tomcat-8/v8.5.34/bin/apache-tomcat-8.5.34.tar.gz sudo mkdir /opt/tomcat sudo tar xzvf apache-tomcat-8.5.34.tar.gz -C /opt/tomcat –strip-components=1 cd /opt/tomcat sudo chgrp -R tomcat /opt/tomcat sudo chmod -R g+r conf sudo chmod g+x conf sudo chown -R tomcat webapps/ work/ temp/ logs/ sudo update-java-alternatives -l

java-1.8.0-openjdk-armhf 1081 /usr/lib/jvm/java-1.8.0-openjdk-armhf

sudo nano /etc/systemd/system/tomcat.service

sudo systemctl daemon-reload sudo systemctl start tomcat sudo systemctl status tomcat

Nginx

cat /etc/nginx/conf.d/cinay.eu.conf server { listen 80; listen [::]:80;

## redirect http to https ##
server_name music.cinay.eu; #    return  301 https://$server_name$request_uri;
location / {
          proxy_pass                         http://192.168.0.12:8080;
    } }

Changer le port Tomcat 8080 -> 8090

sudo systemctl stop tomcat

sudo nano /opt/tomcat/conf/server.xml

    <Connector port="8090" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />