Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
# Redis URL
REDIS_URL=redis://localhost:6379
# Place to store data.
STORAGE_PATH=./var/files

# Session Configuration
# Data Retention (in days)
SESSION_TTL_DAYS=30
TOKEN_TTL_DAYS=30
REQUEST_TTL_DAYS=7

# Scheduled Cleanup
# Set to 'false' to disable automatic cleanup
CLEANUP_ENABLED=true
# Set to 'false' to skip cleanup on startup (only run on schedule)
CLEANUP_ON_STARTUP=true
# How often to run cleanup (in hours)
CLEANUP_INTERVAL_HOURS=1

# Trust proxy for client IP detection
TRUST_PROXY_CLIENT_IP=false

Expand All @@ -14,9 +23,6 @@ TRUST_PROXY_CLIENT_IP=false
AUTH_USERNAME=my_username
AUTH_PASSWORD=my_super_secret_password

# Secret key for token generation (set in production), otherwise a random key is generated on each startup
AUTH_SECRET=random_secret_key

# Enable session restore feature (enabled by default).
# When enabled, users can use their friendly id to restore their session.
SESSION_RESTORE_ENABLED=false
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
.nitro
.cache
dist
var/
# Node dependencies
node_modules

Expand Down
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
],
"cSpell.words": [
"autoresize",
"detc",
"fastly",
"heroicons",
"hgetall",
Expand All @@ -30,6 +31,7 @@
"smembers",
"sqlmap",
"srem",
"unixepoch",
"Whois"
]
}
10 changes: 10 additions & 0 deletions .vscode/tailwind.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@
"url": "https://tailwindcss.com/docs/functions-and-directives#plugin"
}
]
},
{
"name": "@config",
"description": "Use the `@config` directive to specify a custom path to your Tailwind CSS configuration file. This is useful when your configuration file is not located at the default path (`tailwind.config.js`).\n```css\n@config './path/to/your/tailwind.config.js';\n```\n",
"references": [
{
"name": "Tailwind Documentation",
"url": "https://tailwindcss.com/docs/functions-and-directives#config"
}
]
}
]
}
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ FROM node:20-bullseye-slim
WORKDIR /app

COPY --from=base /app/.output /app
COPY migrations/ /app/migrations
COPY README.md /app

ENV NODE_ENV=production
ENV REDIS_URL=redis://redis:6379
ENV STORAGE_PATH=/config

EXPOSE 3000
RUN mkdir -p /config

USER node
EXPOSE 3000

CMD ["/usr/local/bin/node", "/app/server/index.mjs"]
Loading