-
-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
284 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '3.3' | ||
services: | ||
alist: | ||
image: xhofe/alist:v3.41.0 | ||
volumes: | ||
- alist-data:/opt/alist/data | ||
environment: | ||
- PUID=0 | ||
- PGID=0 | ||
- UMASK=022 | ||
restart: unless-stopped | ||
|
||
volumes: | ||
alist-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { | ||
type DomainSchema, | ||
type Schema, | ||
type Template, | ||
generateRandomDomain, | ||
} from "../utils"; | ||
|
||
export function generate(schema: Schema): Template { | ||
const mainDomain = generateRandomDomain(schema); | ||
|
||
const domains: DomainSchema[] = [ | ||
{ | ||
host: mainDomain, | ||
port: 5244, | ||
serviceName: "alist", | ||
}, | ||
]; | ||
|
||
return { | ||
domains, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
services: | ||
server: | ||
image: ghcr.io/spacedriveapp/spacedrive/server:latest | ||
ports: | ||
- 8080 | ||
environment: | ||
- SD_AUTH=${SD_USERNAME}:${SD_PASSWORD} | ||
volumes: | ||
- /var/spacedrive:/var/spacedrive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { | ||
type DomainSchema, | ||
type Schema, | ||
type Template, | ||
generateRandomDomain, | ||
generatePassword, | ||
} from "../utils"; | ||
|
||
export function generate(schema: Schema): Template { | ||
const randomDomain = generateRandomDomain(schema); | ||
const secretKey = generatePassword(); | ||
const randomUsername = "admin"; // Default username | ||
|
||
const domains: DomainSchema[] = [ | ||
{ | ||
host: randomDomain, | ||
port: 8080, | ||
serviceName: "server", | ||
}, | ||
]; | ||
|
||
const envs = [ | ||
`SD_USERNAME=${randomUsername}`, | ||
`SD_PASSWORD=${secretKey}`, | ||
]; | ||
|
||
return { | ||
envs, | ||
domains, | ||
}; | ||
} |
Oops, something went wrong.