Skip to content

Commit 821a437

Browse files
committed
Initial Base
1 parent 83b85b0 commit 821a437

File tree

126 files changed

+24006
-765
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+24006
-765
lines changed

.dockerignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Dependencies
2+
node_modules
3+
.pnp
4+
.pnp.js
5+
6+
# Build
7+
.next
8+
out
9+
build
10+
dist
11+
12+
# Debug
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
17+
# Local env files
18+
.env
19+
.env.local
20+
.env.development.local
21+
.env.test.local
22+
.env.production.local
23+
24+
# IDE
25+
.vscode
26+
.idea
27+
*.swp
28+
*.swo
29+
30+
# OS
31+
.DS_Store
32+
Thumbs.db
33+
34+
# Git
35+
.git
36+
.gitignore
37+
38+
# Docker
39+
docker-compose*.yml
40+
DOCKER.md
41+
.dockerignore
42+
43+
# Test
44+
coverage
45+
.nyc_output
46+
47+
# Misc
48+
*.md
49+
!README.md
50+
LICENSE

.env.docker

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# ==============================================
2+
# VIGILO STATUS PAGE - DOCKER CONFIGURATION
3+
# ==============================================
4+
# Copy this file to .env and adjust the values
5+
# Then run: docker-compose up -d
6+
# ==============================================
7+
8+
# -------------------- INITIAL SETUP (required) --------------------
9+
# These are used ONLY on first start to create the admin account
10+
11+
# Admin account email
12+
ADMIN_EMAIL=admin@example.com
13+
14+
# Admin password (min. 8 characters!)
15+
ADMIN_PASSWORD=ChangeMe123!
16+
17+
# Admin display name (optional)
18+
ADMIN_NAME=Administrator
19+
20+
# -------------------- TENANT SETUP --------------------
21+
# Name of your status page
22+
TENANT_NAME=Status
23+
24+
# Domain where your status page is accessible
25+
TENANT_DOMAIN=localhost:3000
26+
27+
# -------------------- APP SETTINGS --------------------
28+
# Port where the app will be accessible
29+
APP_PORT=3000
30+
31+
# URL where the app is accessible (for OAuth callbacks etc.)
32+
NEXTAUTH_URL=http://localhost:3000
33+
34+
# IMPORTANT: Change these secrets in production!
35+
# Generate with: openssl rand -base64 32
36+
NEXTAUTH_SECRET=change-this-secret-in-production-min-32-chars
37+
CRON_SECRET=change-this-cron-secret-for-security
38+
39+
# -------------------- DATABASE --------------------
40+
# MySQL root password (only used internally)
41+
MYSQL_ROOT_PASSWORD=vigilo_root_secret
42+
43+
# Database name
44+
MYSQL_DATABASE=vigilo
45+
46+
# Database user credentials
47+
MYSQL_USER=vigilo
48+
MYSQL_PASSWORD=vigilo_secret
49+
50+
# External MySQL port (optional, for direct access)
51+
MYSQL_PORT=3306
52+
53+
# -------------------- KEYCLOAK (optional) --------------------
54+
# Leave empty to use local authentication only
55+
KEYCLOAK_CLIENT_ID=
56+
KEYCLOAK_CLIENT_SECRET=
57+
KEYCLOAK_ISSUER=
58+
# Example: KEYCLOAK_ISSUER=https://keycloak.example.com/realms/your-realm

.env.example

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# ==============================================
2+
# DATABASE
3+
# ==============================================
4+
DATABASE_URL="mysql://user:password@localhost:3306/status"
5+
6+
# ==============================================
7+
# NEXTAUTH
8+
# ==============================================
9+
NEXTAUTH_URL="http://localhost:3000"
10+
NEXTAUTH_SECRET="your-nextauth-secret-here"
11+
12+
# ==============================================
13+
# KEYCLOAK (optional)
14+
# ==============================================
15+
# Leave empty to disable Keycloak authentication
16+
KEYCLOAK_CLIENT_ID=""
17+
KEYCLOAK_CLIENT_SECRET=""
18+
KEYCLOAK_ISSUER=""
19+
# Example: KEYCLOAK_ISSUER="https://keycloak.example.com/realms/your-realm"
20+
21+
# ==============================================
22+
# CRON SECURITY
23+
# ==============================================
24+
CRON_SECRET="your-cron-secret-here"
25+
26+
# ==============================================
27+
# NAGIOS (optional)
28+
# ==============================================
29+
# Configure via Admin Panel: /admin/settings -> Nagios
30+
31+
# ==============================================
32+
# SMTP (optional)
33+
# ==============================================
34+
# Configure via Admin Panel: /admin/inbox

.gitignore

Lines changed: 86 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,106 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
/.pnp
1+
# =====================
2+
# Dependencies
3+
# =====================
4+
node_modules/
5+
.pnp
66
.pnp.*
77
.yarn/*
88
!.yarn/patches
99
!.yarn/plugins
1010
!.yarn/releases
1111
!.yarn/versions
1212

13-
# testing
14-
/coverage
13+
# =====================
14+
# Build & Output
15+
# =====================
16+
.next/
17+
out/
18+
build/
19+
dist/
20+
*.tsbuildinfo
21+
22+
# =====================
23+
# Environment & Secrets
24+
# =====================
25+
.env
26+
.env.*
27+
!.env.example
28+
!.env.docker
1529

16-
# next.js
17-
/.next/
18-
/out/
30+
# =====================
31+
# Database
32+
# =====================
33+
*.db
34+
*.sqlite
35+
*.sqlite3
1936

20-
# production
21-
/build
37+
# =====================
38+
# IDE & Editors
39+
# =====================
40+
.idea/
41+
.vscode/*
42+
!.vscode/extensions.json
43+
!.vscode/settings.json
44+
*.swp
45+
*.swo
46+
*~
2247

23-
# misc
48+
# =====================
49+
# OS Files
50+
# =====================
2451
.DS_Store
25-
*.pem
52+
.DS_Store?
53+
._*
54+
.Spotlight-V100
55+
.Trashes
56+
ehthumbs.db
57+
Thumbs.db
58+
desktop.ini
2659

27-
# debug
60+
# =====================
61+
# Logs
62+
# =====================
63+
logs/
64+
*.log
2865
npm-debug.log*
2966
yarn-debug.log*
3067
yarn-error.log*
3168
.pnpm-debug.log*
3269

33-
# env files (can opt-in for committing if needed)
34-
.env*
70+
# =====================
71+
# Testing
72+
# =====================
73+
coverage/
74+
.nyc_output/
75+
*.lcov
3576

36-
# vercel
37-
.vercel
77+
# =====================
78+
# Docker
79+
# =====================
80+
docker/mysql/data/
3881

39-
# typescript
40-
*.tsbuildinfo
82+
# =====================
83+
# Uploads (user content)
84+
# =====================
85+
public/uploads/*
86+
!public/uploads/.gitkeep
87+
88+
# =====================
89+
# Misc
90+
# =====================
91+
*.pem
92+
*.key
93+
*.crt
94+
.vercel
4195
next-env.d.ts
96+
97+
# =====================
98+
# Prisma
99+
# =====================
100+
prisma/*.db
101+
prisma/*.db-journal
102+
103+
# =====================
104+
# Claude Code
105+
# =====================
106+
.claude/

0 commit comments

Comments
 (0)