Shiori
De MochilaWiki
wget https://github.com/go-shiori/shiori/releases/download/v1.5.0/shiori-linux-amd64
sudo mkdir /var/lib/shiori
sudo mv shiori-linux-amd64 /usr/bin/shiori
sudo chmod +x /usr/bin/shiori
em /etc/systemd/system/shiori.service
[Unit] Description=shiori service Requires=network-online.target After=network-online.target [Service] Type=simple ExecStart=/usr/bin/shiori serve Restart=always User=shiori Group=shiori Environment="SHIORI_DIR=/var/lib/shiori" DynamicUser=true PrivateUsers=true ProtectHome=true ProtectKernelLogs=true RestrictAddressFamilies=AF_INET AF_INET6 StateDirectory=shiori SystemCallErrorNumber=EPERM SystemCallFilter=@system-service SystemCallFilter=~@chown SystemCallFilter=~@keyring SystemCallFilter=~@memlock SystemCallFilter=~@setuid DeviceAllow= CapabilityBoundingSet= LockPersonality=true MemoryDenyWriteExecute=true NoNewPrivileges=true PrivateDevices=true PrivateTmp=true ProtectControlGroups=true ProtectKernelTunables=true ProtectSystem=full ProtectClock=true ProtectKernelModules=true ProtectProc=noaccess ProtectHostname=true ProcSubset=pid RestrictNamespaces=true RestrictRealtime=true RestrictSUIDSGID=true SystemCallArchitectures=native SystemCallFilter=~@clock SystemCallFilter=~@debug SystemCallFilter=~@module SystemCallFilter=~@mount SystemCallFilter=~@raw-io SystemCallFilter=~@reboot SystemCallFilter=~@privileged SystemCallFilter=~@resources SystemCallFilter=~@cpu-emulation SystemCallFilter=~@obsolete UMask=0077 [Install] WantedBy=multi-user.target
Iniciando
sudo systemctl enable --now shiori
sudo service shiori start
Credenciais:
username: shiori password: gopher
no Nginx
em /etc/nginx/sites-available/shiori
server {
listen 80;
listen [::]:80;
server_name links.seusite.com.br;
location / {
proxy_pass http://127.0.0.1:8080;
}
}
reiniciando nginx
ln -s /etc/nginx/sites-available/shiori /etc/nginx/sites-enabled/shiori
systemctl daemon-reload
systemctl restart nginx
Configuração Apache 2
sudo apt-get install apache2 -y
echo "ServerName localhost" | sudo tee -a /etc/apache2/apache2.conf
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo nano /etc/apache2/sites-available/shiori.conf
Configuração do Apache
<VirtualHost *:80>
ServerName links.seusite.com.br
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
</VirtualHost>
Reiniciando o Apache
sudo a2ensite gitea
sudo systemctl restart apache2