a mini social media app for small communities

clean up config

Changed files
+27 -13
src
+27 -11
config.maple
··· 1 dev_mode = false 2 static_path = 'src/static' 3 4 instance = { 5 name = 'beep' 6 welcome = 'welcome to beep!' 7 8 default_theme = 'https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css' 9 allow_changing_theme = true 10 11 - // instance version 12 - version = '2025.11' 13 - 14 - // set this to '' if your instance is closed source (twt) 15 - source = 'https://tangled.org/emmeline.girlkisser.top/beep' 16 - 17 - // toggle to `true` to require that users have an invite code to register 18 invite_only = false 19 invite_code = '' 20 21 - // toggle to `true` to allow any non-logged-in user to view data (posts, users, etc) 22 public_data = false 23 } 24 ··· 26 port = 8008 27 } 28 29 postgres = { 30 - // name of database container in compose.yml 31 host = 'beep-database' 32 port = 5432 33 user = 'beep' 34 - password = 'beep' 35 db = 'beep' 36 } 37 38 hcaptcha = { 39 enabled = false 40 - secret = '' 41 site_key = '' 42 } 43 44 post = { 45 title_min_len = 1 46 title_max_len = 50 ··· 51 body_pattern = '.*' 52 } 53 54 user = { 55 username_min_len = 3 56 username_max_len = 20 ··· 73 bio_pattern = '.*' 74 } 75 76 welcome = { 77 summary = 'welcome!' 78 body = 'hello %s and welcome to beep! i hope you enjoy your stay here :D' 79 }
··· 1 + // Toggles developer mode; when true, allows access to the admin panel for all users. 2 dev_mode = false 3 + // Path to the static directory. You shouldn't ever need to change this. 4 static_path = 'src/static' 5 6 + // General instance settings 7 instance = { 8 + // Instance version. This is shown on the about page. 9 + version = '2025.12' 10 + 11 + // Set this to '' if your instance is closed source. This is shown on the about page. 12 + source = 'https://tangled.org/emmeline.girlkisser.top/beep' 13 + 14 + // The instance's name, used for the page titles and on the homepage. 15 name = 'beep' 16 + // The welcome message to show on the homepage. 17 welcome = 'welcome to beep!' 18 19 + // TODO: Move default_theme and allow_changing_theme to user settings 20 + // Default theme applied for all users. 21 default_theme = 'https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css' 22 + // Whether or not users should be able to change their theme. 23 allow_changing_theme = true 24 25 + // Toggle to require that users have the invite code to register. 26 invite_only = false 27 + // Invite code. You can change this at any time. 28 invite_code = '' 29 30 + // Toggle to allow any non-logged-in user to view data (posts, users, etc) 31 public_data = false 32 } 33 ··· 35 port = 8008 36 } 37 38 + // Database settings. 39 postgres = { 40 + // Name of database container in compose.yml 41 host = 'beep-database' 42 port = 5432 43 user = 'beep' 44 + password = 'beep' // TODO: Read from .env 45 db = 'beep' 46 } 47 48 hcaptcha = { 49 + // Toggles if hcaptcha is enabled. 50 enabled = false 51 + secret = '' // TODO: Read from .env 52 site_key = '' 53 } 54 55 + // Post settings. 56 post = { 57 title_min_len = 1 58 title_max_len = 50 ··· 63 body_pattern = '.*' 64 } 65 66 + // User settings. 67 user = { 68 username_min_len = 3 69 username_max_len = 20 ··· 86 bio_pattern = '.*' 87 } 88 89 + // Welcome notification settings. 90 welcome = { 91 + // Title of the notification. 92 summary = 'welcome!' 93 + // Notification body text. %s is replaced with the user's name. 94 body = 'hello %s and welcome to beep! i hope you enjoy your stay here :D' 95 }
-2
src/main.v
··· 9 import beep_sql 10 import util 11 12 - pub const version = '25.01.0' 13 - 14 @[inline] 15 fn connect(mut app App) { 16 println('-> connecting to database...')
··· 9 import beep_sql 10 import util 11 12 @[inline] 13 fn connect(mut app App) { 14 println('-> connecting to database...')