railpack

Configure and troubleshoot Railpack builds, with emphasis on RAILPACK_* environment variables, railpack.json overlays, build-plan inspection, local CLI installation and usage, and local BuildKit containers. Use for Railpack provider configuration, custom install/build/start commands, Mise or Apt packages, build or runtime variables and secrets, generated-plan debugging, BUILDKIT_HOST errors, or running Railpack from a release or source checkout.

Install
npx skills add 'https://github.com/railwayapp/railpack/tree/main/.'
Incomplete bundle · no download
main · 21a254fScanned 2026-09-17

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗

core/providers/node/Caddyfile.template

core/providers/node/Caddyfile.templateBrowse 1970 files
View on GitHub
← Back to SKILL.md
# global options{	admin off	persist_config off	auto_https off 	log {		format json	} 	servers {		trusted_proxies static private_ranges 100.0.0.0/8 # trust railway's proxy	}} # site block, listens on the $PORT environment variable, automatically assigned by railway:{$PORT:80} {	log {		format json	} 	respond /health 200 	# Security headers	header {		# Prevent some browsers from MIME-sniffing a response away from the declared Content-Type		X-Content-Type-Options "nosniff"		# Remove Server header		-Server	} 	# serve from the 'dist' folder (Vite builds into the 'dist' folder)	root * {{.DIST_DIR}} 	# Handle static files	file_server {		hide .git		hide .env*	} 	# Compression with more formats	encode {		gzip		zstd	} 	# match against direct against HTML file matches, folder-level index.html, and optionally fallback to root index.html	try_files {path} {path}.html {path}/index.html{{if .IndexFallback}} /index.html{{end}}}