Self-Hosted Deployment Guide
Besides Docker, you can also directly deploy MobausStudio Web version static files.
Download Static Files
Download MobausStudio-web.zip from the Releases page.
bash
# Download latest version
wget https://github.com/shulain/MobausStudio/releases/latest/download/MobausStudio-web.zip
# Extract
unzip MobausStudio-web.zip -d /var/www/mobaus-studioNginx Deployment
Configuration File
Create /etc/nginx/sites-available/mobaus-studio:
nginx
server {
listen 80;
server_name mobaus.example.com;
root /var/www/mobaus-studio;
index index.html;
# Enable gzip compression
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml;
# SPA routing support
location / {
try_files $uri $uri/ /index.html;
}
# Static resource caching
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}Enable Site
bash
# Create symlink
sudo ln -s /etc/nginx/sites-available/mobaus-studio /etc/nginx/sites-enabled/
# Test configuration
sudo nginx -t
# Reload Nginx
sudo systemctl reload nginxApache Deployment
Configuration File
Create /etc/apache2/sites-available/mobaus-studio.conf:
apache
<VirtualHost *:80>
ServerName mobaus.example.com
DocumentRoot /var/www/mobaus-studio
<Directory /var/www/mobaus-studio>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# SPA routing support
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
# Enable compression
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css application/javascript application/json
</IfModule>
</VirtualHost>Enable Site
bash
# Enable required modules
sudo a2enmod rewrite deflate
# Enable site
sudo a2ensite mobaus-studio
# Reload Apache
sudo systemctl reload apache2Caddy Deployment
Caddy is a modern web server that automatically handles HTTPS.
Caddyfile
caddyfile
mobaus.example.com {
root * /var/www/mobaus-studio
file_server
# SPA routing support
try_files {path} /index.html
# Static resource caching
@static {
path *.js *.css *.png *.jpg *.jpeg *.gif *.ico *.svg *.woff *.woff2
}
header @static Cache-Control "public, max-age=31536000, immutable"
# Enable compression
encode gzip
}Start Caddy
bash
caddy run --config /etc/caddy/CaddyfileCloud Service Deployment
Vercel
- Fork or download static files
- Create new project in Vercel
- Upload
distdirectory contents - Deployment completes automatically
Netlify
- Download
MobausStudio-web.zip - Extract and drag to Netlify deploy page
- Or use CLI:
bash
npm install -g netlify-cli
netlify deploy --prod --dir=./distGitHub Pages
- Create new repository or use existing one
- Upload static files to
gh-pagesbranch - Enable GitHub Pages in repository settings
HTTPS Configuration
Let's Encrypt (Certbot)
bash
# Install Certbot
sudo apt install certbot python3-certbot-nginx
# Get certificate (Nginx)
sudo certbot --nginx -d mobaus.example.com
# Auto renewal
sudo certbot renew --dry-runPerformance Optimization Tips
- Enable HTTP/2: Improve concurrent loading performance
- Enable Gzip/Brotli compression: Reduce transfer size
- Configure CDN: Accelerate global access
- Set reasonable caching strategy: Long-term cache for static resources
Security Recommendations
- Use HTTPS: Encrypt data transmission
- Configure security headers:nginx
add_header X-Frame-Options "SAMEORIGIN"; add_header X-Content-Type-Options "nosniff"; add_header X-XSS-Protection "1; mode=block"; - Restrict access: Configure IP whitelist or basic authentication if needed