- Home
- Skills
- DevOps & Cloud
- NAS Cloudflare Deploy
NAS Cloudflare Deploy
Deploy Synology NAS apps and games to custom domains via Cloudflare Tunnel without port forwarding.
$3
Works with the AI Agents you already use
NAS Cloudflare Deploy
Example session with this skill installed
I want to deploy my web game from my Synology NAS to game.mydomain.tw using Cloudflare Tunnel. I bought the domain on PChome.
- Read your context and instructions
- Compiled the nas cloudflare deploy
I will help you set up the deployment for your web game using Cloudflare Tunnel and Nginx on your Synology NAS.
Deployment Configuration
First, update your PChome DNS settings to use Cloudflare Nameservers. Ensure the IP and IPv6 fields are left blank.
1. Nginx Configuration (nginx.conf)
Create this file in your project folder to enable Gzip compression and prevent caching issues.
events { worker_connections 1024; }
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
gzip on;
gzip_types text/plain text/css application/javascript application/json image/svg+xml;
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location = /index.html {
add_header Cache-Control "no-cache, no-store, must-revalidate";
}
location / {
try_files $uri $uri/ /index.html;
expires 7d;
}
}
}
2. Docker Compose (docker-compose.yml)
Place your build files in a dist/ directory and use the following compose file in Synology Container Manager.
version: '3.8'
services:
game:
image: nginx:alpine
container_name: game-web
restart: unless-stopped
volumes:
- ./dist:/usr/share/nginx/html:ro
- ./nginx.conf:/etc/nginx/nginx.conf:ro
tunnel:
image: cloudflare/cloudflared:latest
container_name: game-tunnel
restart: unless-stopped
command: tunnel --no-autoupdate run --token <YOUR_CLOUDFLARE_TOKEN>
depends_on:
- game
Next steps
- Copy your game files into the
dist/folder on your NAS. - Create a Public Hostname in Cloudflare Zero Trust pointing
game.mydomain.twtohttp://game:80. - Verify the connection by visiting your subdomain.
Connects securely to your tools. The creator never sees your data.
About this skill
Safely expose your Synology NAS local services, web games, or Docker applications to custom domains using Cloudflare Tunnel (cloudflared).
Why Use This Skill? Zero Port Forwarding: Protect your home IP and internal network without opening router ports. Taiwan Domain Registrar Support: Includes step-by-step DNS delegation for PChome, HiNet, and TWNIC to Cloudflare. Nginx Security Isolation: Mounts only necessary static/dist assets, preventing private repository or token leaks. Free SSL & DDoS Protection: Automatically leverages Cloudflare Edge certificates. Prerequisites A Synology NAS supporting Container Manager (Docker). A Cloudflare account and a custom domain.
💡 Open-Source Supporter Edition This listing is the 1-Click Install / Supporter Edition. Purchasing supports the creator and saves setup time. The core implementation is also open-source on GitHub: https://github.com/Qhc2981/skill-nas-cloudflare-deploy
Requires Synology Container Manager. Effectiveness is bound by home network upload speeds. Does not support NAS models without Docker capability.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Accounts
Clouldflare
Cloudflare Account
- Software
- Synology NAS with Container Manager
Ensure Container Manager (Docker) is installed and active on your Synology NAS.
Permissions
Allowed Hosts
File Scopes
Used to inspect and generate Docker Compose and Nginx configuration files for deployment.