This is a simple file server built with Next.js. Its purpose is to let you create static file links and manually upload any files you want to share into the public directory.
- Manually upload the files you want to share into the
publicdirectory (or any subdirectory inside it). - Access your files directly via URL:
http://localhost:3000/your-folder-or-file-name/your-file - When deployed to production, access your files via:
https://yourdomain.com/your-folder-or-file-name/your-file - If you access an invalid or non-existent path, the system will return a 403 Forbidden error page similar to AWS S3.
You can easily deploy this project to Dokploy:
- Push your code to a Git repository (GitHub, GitLab, Bitbucket, etc).
- Go to https://app.dokploy.com and sign in or sign up.
- Click "Create Project" and connect your repository (from GitHub or GitLab).
- Choose the branch you want to deploy.
- Click "Deploy" and wait for your app to be live.
- After deployment, configure your custom domain to point to your Dokploy deployment (follow the DNS instructions in Dokploy dashboard).
- Dokploy will auto-detect Next.js. You can use the default build and start commands:
- Build Command:
npm run build - Start Command:
npm startornpm run start
- Build Command:
For more details, see the Dokploy documentation.
You can also deploy this project easily to Vercel:
- Push your code to a Git repository (GitHub, GitLab, Bitbucket, etc).
- Go to https://vercel.com/import and import your repository.
- Follow the setup instructions (Vercel will auto-detect Next.js).
- Click "Deploy" and wait for your app to be live.
- (Optional) Configure your custom domain in the Vercel dashboard to point to your deployment.
For more details, see the Vercel documentation.
- There is no web upload feature, only manual upload is supported.
- Only static files in the
publicdirectory are accessible directly. - All dynamic routes or the homepage will return a 403 Forbidden error.