28) { $err = 'Reset day must be between 1 and 28.'; } else { $app_cfg = [ 'admin_user' => $u, 'admin_pass' => password_hash($p, PASSWORD_DEFAULT), 'created_at' => date('c'), 'cap_gb' => max(0, $cap_gb), 'cap_reset_day' => $cap_reset_day, 'rate_mbps' => max(0, $rate_mbps), ]; if (function_exists('app_save_config')) { app_save_config($app_cfg); } else { $dir = '/etc/snowpanel'; @mkdir($dir, 0770, true); @file_put_contents("$dir/app.json", json_encode($app_cfg, JSON_PRETTY_PRINT), LOCK_EX); @chgrp($dir, 'www-data'); @chmod($dir, 0770); @chgrp("$dir/app.json", 'www-data'); @chmod("$dir/app.json", 0660); } $flags = snowctl_build_flags([ 'broker'=>$broker, 'stun'=>$stun, 'range'=>$range, 'unsafe'=>$unsafe?1:0 ]); snowctl_apply_override($flags); header('Location: /login.php?ok=1'); exit; } } ?> First-time Setup ยท SnowPanel

First-time Setup

Step 1
Admin account
Step 2
Proxy basics
>
Step 3
Limits
GB
0 = unlimited
Mbps
0 = unlimited (display only)
Reminder
  • No port forwarding is required for Snowflake.
  • Allow outbound UDP and the chosen ephemeral range.