diff --git a/config.ini b/config.ini
index 3178c9e..28c2531 100644
--- a/config.ini
+++ b/config.ini
@@ -19,21 +19,31 @@ knotc_path = "/usr/sbin/knotc"
knot_zones_path = "/srv/ns"
[ht]
+; Path were user's sites will be stored
ht_path = "/srv/ht"
-ipv6_address = "::1"
-ipv4_address = "127.0.0.1"
-sftp_domain = "sftp.niver.test"
-public_sftp_port = 2022
-https_port = 42443
-internal_onion_http_port = 9080
-sudo_path = "/usr/bin/sudo"
-chgrp_path = "/usr/bin/chgrp"
-systemctl_path = "/usr/bin/systemctl"
-certbot_path = "/usr/bin/certbot"
; Nginx configuration directory
nginx_config_path = "/etc/nginx/ht"
; Tor configuration file
tor_config_path = "/etc/tor/instances/niver/torrc"
; Tor keys directory
tor_keys_path = "/var/lib/tor-instances/niver/keys"
+
+sudo_path = "/usr/bin/sudo"
+systemctl_path = "/usr/bin/systemctl"
+certbot_path = "/usr/bin/certbot"
+chgrp_path = "/usr/bin/chgrp"
+
sftpgo_group = sftpgo
+
+; Will be shown to users
+ipv6_address = "::1"
+ipv4_address = "127.0.0.1"
+sftp_pub = "/etc/sftpgo/ed25519.pub"
+sftp_fp = "/etc/sftpgo/ed25519.fp"
+sftp_asciiart = "/etc/sftpgo/ed25519.asciiart"
+sftp_domain = "sftp.niver.test"
+public_sftp_port = 2022
+
+; Will be used in configuration files
+https_port = 42443
+internal_onion_http_port = 9080
diff --git a/public/ht/index.php b/public/ht/index.php
index 3c134d1..bf5ca49 100644
--- a/public/ht/index.php
+++ b/public/ht/index.php
@@ -1,22 +1,31 @@
-Vous avez accès à un espace SFTP. Vous pouvez téléverser vos sites dans /<nom du site>/*
.
+
+ Vous avez accès à un espace SFTP. Vous pouvez téléverser vos sites dans /<nom du site>/*
. Indiquez les données ci-dessous à votre client SFTP pour y accéder.
+
= file_get_contents(CONF['ht']['sftp_pub']) ?>
+ = file_get_contents(CONF['ht']['sftp_fp']) ?>
+ = file_get_contents(CONF['ht']['sftp_asciiart']) ?>+
= $_SESSION['username'] ?>
- = CONF['ht']['sftp_domain'] ?>
@@ -31,6 +40,16 @@ Indiquez les données ci-dessous à votre client SFTP
+