-
- When selecting a custom path, ensure it is mounted from the host machine into the
- container.
-
+ When selecting a custom path, ensure it is mounted from the host machine into the container.
- If the path is not a host mount, you will lose your repository data when the container
- restarts.
+ If the path is not a host mount, you will lose your repository data when the container restarts.
The default path /var/lib/zerobyte/repositories is
@@ -703,6 +695,89 @@ export const CreateRepositoryForm = ({
>
)}
+ {watchedBackend === "sftp" && (
+ <>
+ (
+
+ Host
+
+
+
+ SFTP server hostname or IP address.
+
+
+ )}
+ />
+ (
+
+ Port
+
+ field.onChange(parseInt(e.target.value, 10))}
+ />
+
+ SSH port (default: 22).
+
+
+ )}
+ />
+ (
+
+ User
+
+
+
+ SSH username for authentication.
+
+
+ )}
+ />
+ (
+
+ Path
+
+
+
+ Repository path on the SFTP server.
+
+
+ )}
+ />
+ (
+
+ SSH Private Key
+
+
+
+ Paste the contents of your SSH private key.
+
+
+ )}
+ />
+ >
+ )}
+
{mode === "update" && (