snotes updates, actions, attachments, easy user space

This commit is contained in:
2026-09-22 17:31:55 -07:00
parent ce30c6f4f7
commit abfbf3de1f
21 changed files with 669 additions and 53 deletions

View File

@@ -16,6 +16,9 @@ class Settings(BaseSettings):
# SQLite metadata + search index (local disk)
database_path: str = "snotes.db"
# TOML file defining slash "actions" (see snotes.toml)
actions_file: str = "snotes.toml"
# Fixed list of usernames, comma-separated (seeded at startup)
users: str = "schmeeve,ilya"
@@ -29,7 +32,7 @@ class Settings(BaseSettings):
secret_key: str = "change-me-in-production"
# Subnet(s) considered "local" and allowed in without a password
lan_cidrs: str = "192.168.1.0/24"
lan_cidrs: str = "192.168.1.0/24,127.0.0.1/32,::1/128"
host: str = "0.0.0.0"
port: int = 8000