2022-07-20 20:03:45 +02:00
< p >
Ce service permet d 'envoyer des fichiers sur le serveur par <?= linkToDocs(' sftp ', ' SFTP ') ?> afin de les rendre accessibles par <?= linkToDocs(' http ', ' HTTP ' ) ?> .
</ p >
2022-06-16 15:08:50 +02:00
< ? php displayIndex (); ?>
2022-09-07 02:47:50 +02:00
< section >
2022-10-09 23:35:24 +02:00
< h2 > Sites actuellement hébergés </ h2 >
2022-09-07 02:47:50 +02:00
< dl >
< ? php
2022-10-09 23:35:24 +02:00
$sites = query ( 'select' , 'sites' , [ 'username' => $_SESSION [ 'username' ] ? ? '' ]);
if ( $sites === [])
echo ' <p>Ce compte n\'héberge aucun site sur cette instance.<p>' . " \n " ;
else {
echo ' <dl>' . " \n " ;
foreach ( $sites as $site ) {
$url = 'http' . (( $site [ 'domain_type' ] === 'onion' ) ? '' : 's' ) . '://' . $site [ 'domain' ] . '/' ;
2022-09-07 02:47:50 +02:00
?>
< dt >/< ? = $site [ 'site_dir' ] ?> </dt>
< dd >
< a href = " <?= $url ?> " rel = " external " >< ? = $url ?> </a>
</ dd >
2022-10-09 23:35:24 +02:00
< ? php
}
echo ' </dl>' . " \n " ;
}
?>
2022-09-07 02:47:50 +02:00
</ section >
2022-05-20 00:15:13 +02:00
2022-05-21 02:13:42 +02:00
< section >
2022-09-07 02:47:50 +02:00
< h2 > SFTP </ h2 >
2022-05-20 00:15:13 +02:00
2022-09-07 02:47:50 +02:00
< p >
2022-10-06 15:03:21 +02:00
Vous avez accès à un espace < abbr title = " SSH File Transfert Protocol " > SFTP </ abbr > , limité à < ? = (( CONF [ 'ht' ][ 'user_quota' ] >> 30 ) >= 1 ) ? CONF [ 'ht' ][ 'user_quota' ] >> 30 . ' ' . linkToDocs ( 'units' , '<abbr title="gibioctet">Gio</abbr>' ) : CONF [ 'ht' ][ 'user_quota' ] >> 20 . ' ' . linkToDocs ( 'units' , '<abbr title="mébioctet">Mio</abbr>' ) ?> . Vous pouvez téléverser vos sites dans <code>/<nom du site>/*</code>. Indiquez les données ci-dessous à votre client <abbr title="SSH File Transfert Protocol">SFTP</abbr> pour y accéder.
2022-09-07 02:47:50 +02:00
</ p >
2022-05-20 00:15:13 +02:00
2022-09-07 02:47:50 +02:00
< section >
< h3 > Authentifier le serveur </ h3 >
2022-05-20 00:15:13 +02:00
2022-09-07 02:47:50 +02:00
< details >
< summary > Clé publique </ summary >
< code >< ? = file_get_contents ( CONF [ 'ht' ][ 'sftp_pub' ]) ?> </code>
</ details >
2022-05-21 02:13:42 +02:00
2022-10-06 15:03:21 +02:00
< details open = " " >
2022-09-07 02:47:50 +02:00
< summary > Empreinte </ summary >
< code >< ? = file_get_contents ( CONF [ 'ht' ][ 'sftp_fp' ]) ?> </code>
</ details >
2022-05-21 02:13:42 +02:00
2022-09-07 02:47:50 +02:00
< details >
< summary > Art ASCII </ summary >
< pre >< ? = file_get_contents ( CONF [ 'ht' ][ 'sftp_asciiart' ]) ?> </pre>
</ details >
2022-06-16 15:08:50 +02:00
2022-09-07 02:47:50 +02:00
</ section >
2022-06-16 15:08:50 +02:00
2022-09-07 02:47:50 +02:00
< section >
< h3 > Se connecter au serveur </ h3 >
< a href = " sftp://<?= isset( $_SESSION['username'] ) ? $_SESSION['username'] : '<username>'; ?>@<?= CONF['ht']['sftp_domain'] ?>:<?= CONF['ht']['public_sftp_port'] ?>/ " > sftp ://< ? = isset ( $_SESSION [ 'username' ]) ? $_SESSION [ 'username' ] : '<username>' ; ?> @<?= CONF['ht']['sftp_domain'] ?>:<?= CONF['ht']['public_sftp_port'] ?>/</a>
< dl >
< dt > Serveur </ dt >
< dd >
< code >< ? = CONF [ 'ht' ][ 'sftp_domain' ] ?> </code>
</ dd >
< dt > Port </ dt >
< dd >
< code >< ? = CONF [ 'ht' ][ 'public_sftp_port' ] ?> </code><?php if (CONF['ht']['public_sftp_port'] === 22) echo " (par défaut)"; ?>
</ dd >
< dt > Dossier </ dt >
< dd >
< code >/</ code >
</ dd >
< dt > Utilisataire </ dt >
< dd >
< code >< ? = isset ( $_SESSION [ 'username' ]) ? $_SESSION [ 'username' ] : '<username>' ; ?> </code>
</ dd >
< dt > Clé de passe </ dt >
< dd >
2022-10-06 15:03:21 +02:00
celle de votre compte
2022-09-07 02:47:50 +02:00
</ dd >
</ dl >
</ section >
2022-06-16 15:08:50 +02:00
</ section >