tabby-web testing
This commit is contained in:
45
modules/nixos/services/tabby-web/example.nix
Normal file
45
modules/nixos/services/tabby-web/example.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
# Example configuration for Tabby Web service
|
||||
# Add this to your NixOS configuration to enable tabby-web
|
||||
|
||||
{
|
||||
# Basic configuration - SQLite database, local storage
|
||||
mjallen.services.tabby-web = {
|
||||
enable = true;
|
||||
port = 9000;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
# Advanced configuration example (commented out)
|
||||
/*
|
||||
mjallen.services.tabby-web = {
|
||||
enable = true;
|
||||
port = 8080;
|
||||
openFirewall = true;
|
||||
|
||||
# Use PostgreSQL database
|
||||
databaseUrl = "postgresql://tabby:password@localhost:5432/tabby";
|
||||
|
||||
# Use S3 for app distribution storage
|
||||
appDistStorage = "s3://my-bucket/tabby-dist";
|
||||
|
||||
# Configure GitHub OAuth
|
||||
socialAuth.github = {
|
||||
key = "your-github-oauth-key";
|
||||
secret = "your-github-oauth-secret";
|
||||
};
|
||||
|
||||
# Performance tuning
|
||||
workers = 8;
|
||||
timeout = 300;
|
||||
|
||||
# Custom data directory
|
||||
dataDir = "/srv/tabby-web";
|
||||
|
||||
# Additional environment variables
|
||||
extraEnvironment = {
|
||||
DEBUG = "0";
|
||||
LOG_LEVEL = "info";
|
||||
};
|
||||
};
|
||||
*/
|
||||
}
|
||||
Reference in New Issue
Block a user