source: Klonkt/.env.example@ 69a10e7

main
Last change on this file since 69a10e7 was 5f483e3, checked in by Robin Genis <roboburr@…>, 2 months ago

chore: code cleanup — remove dead files, deps, DB tables, Google-login remnants

  • Deleted dead files: routes/notifications.js + services/NotificationService.js + views/pages/notifications.ejs (old bell, unmounted; live fedi notifications live in posts.js); deploy/verify.ps1 (stale smoke test).
  • package.json — drop unused ws dependency (no WebSocket since Prutter was removed).
  • .env.example — drop GOOGLE_* vars (Google login removed).
  • config/database.js — remove CREATE statements for dead tables (circle_links/remote_actors/ remote_posts from old Circles v1; user_notifications; post_likes). No DROP — existing rows stay.
  • services/i18n.js — remove dead keys: hub, prutter, and the whole Google-login set (+ the agoog.* wizard + glog.* notices, ~280 lines). Kept aseo.verify_google. solo_desc/login_google_only de-Googled.
  • views/pages/auth-login.ejs — drop the dead Google error block + button CSS; the password login form is unchanged.
  • deploy/post-receive — fix stale pm2 reload prutcms -> klonkt.
  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[7bc636b]1NODE_ENV=development
2PORT=3000
[f99bbe8]3
4# Network interface to bind. 127.0.0.1 = only reachable via a reverse proxy on the
5# same machine (recommended for a manual install behind Caddy/nginx — keeps the app
6# off the public internet). Use 0.0.0.0 only if you need direct external access
7# (no proxy/HTTPS — not recommended). Docker sets this to 0.0.0.0 itself.
8HOST=127.0.0.1
[09ee2bd]9# Secret used to sign login-session cookies. Leave EMPTY to auto-generate a strong
10# one on first start (saved to storage/.session-secret, stays stable across
11# restarts/updates). Or set your own: openssl rand -hex 32
12SESSION_SECRET=
[7bc636b]13DATABASE_PATH=./storage/database.sqlite
14MEDIA_PATH=./storage/media
[c80e78b]15
[09ee2bd]16# Canonical public URL of this site (scheme + host, no trailing slash), e.g.
17# https://yourdomain.com . Used to build correct links in emails (password reset)
18# and OAuth redirects instead of trusting request headers (anti-spoofing).
19# Optional: leave empty and it falls back to the request host (fine for local/dev);
20# set it for production so email/login links point at the right place.
21PUBLIC_BASE_URL=
[c80e78b]22
[bb42dfb]23# ── Administrator ───────────────────────────────────────────────────
24# The admin logs in with username + password. On first start you create your
25# admin account via /auth/register; after that, registration is closed.
26# Forgot your password? -> "Forgot password" (email, see SMTP below) or always:
27# `npm run reset-admin` on the server.
[9e27d64]28
[bb42dfb]29# ── Email (optional) — for "forgot password" reset links ────────────
30# Not set? Then reset only works via `npm run reset-admin` on the server.
[9e27d64]31SMTP_HOST=
32SMTP_PORT=587
33SMTP_USER=
34SMTP_PASS=
35SMTP_FROM=
[cb01666]36
[bb42dfb]37# ── Lite mode (optional) ────────────────────────────────────────────
38# Set to "off" to disable the whole audio feature (no built-in music hosting/
39# player, no ffmpeg needed). Klonkt then runs as a lightweight blog/photo/EPK
40# site, even on an environment without ffmpeg. Hub and Circles keep working.
41# External embeds (YouTube/SoundCloud/Spotify) keep working too.
[196e1be]42# Reversible: set back to "on" (or remove) and restart — no reinstall, tracks kept.
[cb01666]43KLONKT_AUDIO=on
[cb4eda5]44
[cbcc8a4]45# ── Premium extras ──────────────────────────────────────────────────
46# The core app, all updates and Cirkels are free. A handful of extras
47# (newsletter, statistics, EPK, link-in-bio, embeddable player, show agenda,
48# release planning, download-for-email) are unlocked by a one-time Patreon
49# supporter link — that's what funds the project:
50# klonkt.com / patreon.com/c/roboburr. Leave this on.
[cb4eda5]51KLONKT_PREMIUM_ENABLED=on
Note: See TracBrowser for help on using the repository browser.