1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yacy_ynh.git synced 2024-09-03 18:05:59 +02:00
This commit is contained in:
Moul 2014-07-09 18:46:39 +02:00
parent 93e67ddab3
commit d8c625fa1d
2 changed files with 7 additions and 6 deletions

View file

@ -4,7 +4,7 @@ location PATHTOCHANGE/ {
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://127.0.0.1:8090PATHTOCHANGE/;
proxy_pass http://127.0.0.1:8090/;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;

View file

@ -18,7 +18,7 @@ fi
# Install official Debian package
echo "deb http://debian.yacy.net ./" | sudo tee /etc/apt/sources.list
echo "deb http://debian.yacy.net ./" | sudo tee /etc/apt/sources.list.d/yacy.list
gpg --keyserver pgpkeys.mit.edu --recv-key 1F968B3903D886E7
gpg -a --export 1F968B3903D886E7 | sudo apt-key add -
@ -26,11 +26,12 @@ gpg -a --export 1F968B3903D886E7 | sudo apt-key add -
sudo apt-get update
sudo apt-get install yacy -y -qq
# Set permissions to yacy directory
sudo chown -R www-data: $final_path
# Modify Nginx and YaCy configuration file, then copy them to the right place
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/yacy.conf
# Forward port 80 to 8090
#iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8090
# Ajouter le service YaCy au monitoring YunoHost
sudo yunohost service add yacy --log /var/log/yacy/yacy00.log
# Reload Nginx and regenerate SSOwat conf
sudo service nginx reload