Getting Started
이 콘텐츠는 아직 귀하의 언어로 제공되지 않습니다.
This guide will get you up and running with a self-hosted Onetime Secret instance in minutes.
Prerequisites
Section titled “Prerequisites”- 1GB+ RAM for optimal performance
- Redis storage note: Depending on your Redis configuration, secrets can be stored entirely in memory without ever being written to disk for enhanced security
Method 1: Docker (Recommended)
Section titled “Method 1: Docker (Recommended)”The fastest way to get started uses Docker with minimal configuration.
1. Start Redis
Section titled “1. Start Redis”docker run -p 6379:6379 -d redis:bookworm
2. Generate Secret Key
Section titled “2. Generate Secret Key”# Generate and store a persistent secret keyopenssl rand -hex 32 > .ots_secretchmod 600 .ots_secretecho "Secret key saved to .ots_secret (keep this file secure!)"
3. Run Onetime Secret
Section titled “3. Run Onetime Secret”# Run the container using the secret keydocker run -p 3000:3000 -d \ -e REDIS_URL=redis://host.docker.internal:6379/0 \ -e SECRET="$(cat .ots_secret)" \ -e HOST=localhost:3000 \ -e SSL=false \ -e RACK_ENV=production \ onetimesecret/onetimesecret:latest
4. Access Your Instance
Section titled “4. Access Your Instance”Open your browser to:
- Web Interface: http://localhost:3000
- API Endpoint: http://localhost:3000/api/v2/status
Method 2: Manual Installation
Section titled “Method 2: Manual Installation”For those who prefer manual setup, you’ll need:
- Ruby 3.2+ (may not be available in default system packages)
- Redis 5+ or Valkey (Redis alternative)
- Node.js 22+ and pnpm (only required for development and building frontend assets)
You’ll need to build the frontend assets with pnpm install && pnpm run build:local
before running the application.
See INSTALL.md for complete manual installation details.
Verification
Section titled “Verification”- Navigate to http://localhost:3000
- Create a test secret to verify everything works
- Check the API status at http://localhost:3000/api/v2/status
Admin Setup
Section titled “Admin Setup”To create an admin user, add email addresses to the :colonels:
section in your config file, then sign up with one of those emails to automatically get admin access.
Note: The admin area currently has limited functionality - it’s readonly config viewing with no user management. More features are planned for future releases.
Next Steps
Section titled “Next Steps”Now that your instance is running:
- Configure your deployment for production use
- Review configuration options for customization
Getting Help
Section titled “Getting Help”- Documentation: Browse our configuration reference
- Community: Join discussions on GitHub
- Issues: Report bugs on our issue tracker