-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
48 lines (42 loc) · 1.68 KB
/
config.example.yaml
File metadata and controls
48 lines (42 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# G0 CMS Configuration
# Copy this to data/config.yaml and fill in your values
# OR just run ./g0 and use the setup wizard
#
# All persistent data is stored in ./data/ folder:
# - data/config.yaml (this file)
# - data/g0.db (SQLite database)
site:
name: "My Site"
url: "https://example.com" # Your domain (no trailing slash)
tagline: "A lightweight CMS"
description: "My personal website"
author: "Your Name"
database:
driver: "sqlite" # "sqlite" or "postgres"
# SQLite settings (if driver: sqlite)
path: "./data/g0.db"
# PostgreSQL settings (if driver: postgres)
# Steps:
# 1) Create a database and user (example):
# CREATE DATABASE g0cms;
# CREATE USER g0user WITH PASSWORD 'strong-password';
# GRANT ALL PRIVILEGES ON DATABASE g0cms TO g0user;
# 2) Fill the fields below (no quotes required).
# 3) Ensure the server allows connections from your host.
# host: "localhost"
# port: "5432"
# user: "g0user"
# password: "strong-password"
# dbname: "g0cms"
auth:
provider: "google"
client_id: "xxxx.apps.googleusercontent.com" # From Google Cloud Console
client_secret: "GOCSPX-xxxx" # From Google Cloud Console
redirect_url: "https://example.com/api/auth/callback" # Must match Google Console
allowed_emails:
- "you@gmail.com" # Email(s) allowed to access admin
session_key: "" # Auto-generated if empty
server:
host: "0.0.0.0" # Listen on all interfaces
port: "8080" # HTTP port
admin_path: "/admin" # Custom admin panel URL (e.g., /admin, /dashboard, /control)