Generate SFTPGo fingerprints

This commit is contained in:
Miraty 2022-05-31 23:56:38 +02:00
parent 5db15e973e
commit 6158bbb511
6 changed files with 10 additions and 8 deletions

View File

@ -1,3 +1,3 @@
more_set_headers "Content-Security-Policy : default-src 'none'; style-src 'self' 'unsafe-inlinde' http: data:; img-src 'self' http: data:; font-src 'self' http: data:; media-src 'self' http: data:; frame-ancestors 'none'; form-action 'none';";
include inc/ht.conf
include inc/ht.conf;

View File

@ -1,4 +1,4 @@
more_set_headers "Content-Security-Policy : default-src 'none'; style-src 'self' 'unsafe-inlinde' https: data:; img-src 'self' https: data:; font-src 'self' https: data:; media-src 'self' https: data:; frame-ancestors 'none'; form-action 'none';";
include inc/ht.conf
include inc/ht.conf;
include inc/tls.conf;

View File

@ -10,7 +10,6 @@ server {
include inc/tls.conf;
include inc/errors.conf;
more_set_headers "Referrer-Policy : same-origin";
more_set_headers "Content-Security-Policy : default-src 'none'; style-src 'self'; frame-ancestors 'none'; form-action 'self';";
location ~ \.php$ {

View File

@ -22,7 +22,8 @@ chmod -R 770 /srv/ns
chown -R php-niver:php-niver /etc/nginx/ht
chown -R sftpgo:sftpgo /etc/sftpgo
chmod -R u=rwX,g=,o= /etc/sftpgo
chmod -R u=rX,g=rX,o=rX /etc/sftpgo
chmod u=r,g=,o= /etc/sftpgo/ed25519
chown -R php-niver:sftpgo /srv/ht
chmod -R u=rwX,g=rwX,o=rX /srv/ht
@ -41,7 +42,6 @@ chmod -R u=rX,g=rX,o= /srv/php/errors
chown -R php-niver:nginx /srv/php/niver
chmod -R u=rX,g=rX,o=X /srv/php/niver
chmod -R u=rwX,g=rX,o= /srv/php/niver/public/css/
chmod -R u=rwX,g=,o= /srv/php/niver/db /srv/php/niver/niver.log
# Load configuration in Knot database

View File

@ -26,8 +26,11 @@ ssh-keygen -f /etc/ssh/ed25519 -t ed25519 -N ""
ssh-keygen -lvf /etc/ssh/ed25519 > /etc/ssh/ed25519.fp
# Generate SFTPGo key pair
ssh-keygen -f /etc/sftpgo/ed25519 -t ed25519 -N ""
ssh-keygen -lvf /etc/sftpgo/ed25519 > /etc/sftpgo/ed25519.fp
ssh-keygen -f /etc/sftpgo/ed25519 -t ed25519 -N "" -C ""
# Generate fingerprints
fp=($(ssh-keygen -l -f /etc/sftpgo/ed25519))
echo ${fp[1]} > /etc/sftpgo/ed25519.fp
ssh-keygen -lv -f /etc/sftpgo/ed25519 | tail -n +2 > /etc/sftpgo/ed25519.asciiart
# Create database
sqlite3 /srv/php/niver/db/niver.db < /srv/php/niver/db/source.sql

@ -1 +1 @@
Subproject commit 7964b86c70332ad2d5779cc0ab6a8ba476857aaa
Subproject commit 3a71e759a40c21716d32e1d4d2bd1751c0574a79