Mudanças entre as edições de "Shiori"
De MochilaWiki
Ir para navegaçãoIr para pesquisarLinha 67: | Linha 67: | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
− | + | Iniciando | |
<source lang="bash"> | <source lang="bash"> | ||
sudo systemctl enable --now shiori | sudo systemctl enable --now shiori | ||
sudo service shiori start | sudo service shiori start | ||
</source> | </source> | ||
+ | |||
+ | Credenciais: | ||
+ | username: shiori | ||
+ | password: gopher | ||
+ | |||
+ | === no Nginx === | ||
+ | em /etc/nginx/sites-available/shiori | ||
+ | <source lang="nginx"> | ||
+ | server { | ||
+ | listen 80; | ||
+ | listen [::]:80; | ||
+ | server_name links.seusite.com.br; | ||
+ | location / { | ||
+ | proxy_pass http://127.0.0.1:8080; | ||
+ | } | ||
+ | } | ||
+ | </source> | ||
+ | |||
+ | reiniciando nginx | ||
+ | <source lang="bash"> | ||
+ | ln -s /etc/nginx/sites-available/shiori /etc/nginx/sites-enabled/shiori | ||
+ | systemctl daemon-reload | ||
+ | systemctl restart nginx | ||
+ | </source> | ||
+ | |||
+ | === Referências === | ||
+ | * [https://github.com/go-shiori/shiori/wiki/Frequently-Asked-Question Frequently Asked Question] | ||
+ | https://github.com/go-shiori/shiori/wiki/Usage |
Edição das 01h52min de 4 de agosto de 2021
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