diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..e909949 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,10 @@ +**/.git +**/.github +**/.vs +**/.vscode +**/bin +**/obj +data/ +downloads/ +*.user +*.suo diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..79bc72b --- /dev/null +++ b/.env.example @@ -0,0 +1,30 @@ +# ======================================================== +# GsDChat Environment Configuration +# ======================================================== + +# Host port mapping (for docker-compose.yml) +PORT=5000 + +# Server display metadata +SERVER_NAME=GsDChat Community Server +SERVER_MOTD=Welcome to GsDChat! Enjoy private and modular messaging. + +# Optional server-wide password gate. +# If non-empty, every user must provide this password to register or connect. +# Leave blank to disable server password gating. +SERVER_PASSWORD= + +# Registration Mode: +# "Open" - Any user can register an account. +# "InviteOnly" - Registration requires an invite token. +REGISTRATION_MODE=Open + +# Maximum allowed file upload size in megabytes +MAX_FILE_SIZE_MB=50 + +# ======================================================== +# Cloudflare Tunnel Configuration (for docker-compose.tunnel.yml) +# ======================================================== +# Obtain your tunnel token from Cloudflare Zero Trust: +# Dashboard -> Networks -> Tunnels -> Create a Tunnel (cloudflared) -> Docker run command token +CLOUDFLARE_TUNNEL_TOKEN= diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..292f803 --- /dev/null +++ b/.gitignore @@ -0,0 +1,64 @@ +# ======================================================== +# .NET Build & Compilation Outputs +# ======================================================== +[Bb]in/ +[Oo]bj/ +[Oo]ut/ +[Ll]og/ +[Ll]ogs/ +**/mods/*.dll +mods/*.dll + +# MSBuild / Visual Studio +.vs/ +*.user +*.userosscache +*.suo +*.userprefs +*.sln.docstates + +# JetBrains Rider / ReSharper +.idea/ +*.sln.iml +_ReSharper*/ + +# Visual Studio Code +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json + +# ======================================================== +# Application Runtime & Local Data +# ======================================================== +# SQLite Database & Storage +data/ +*.db +*.db-shm +*.db-wal +*.sqlite +*.sqlite3 + +# Local File Downloads +downloads/ + +# Local Client Server History +servers.json +.gsdchat/ + +# Local Environment Variables & Secrets +.env +!.env.example + +# Temporary / Scratch files +*.tmp +*.temp +*~ +*.swp + +# ======================================================== +# OS Generated Files +# ======================================================== +.DS_Store +Thumbs.db +desktop.ini