Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
086e7c7a77 | |||
181bed4449 | |||
6e0795bbdf |
@ -20,6 +20,6 @@ _buildConfig() {
|
||||
echo ""
|
||||
}
|
||||
|
||||
_buildConfig > src/inc/config.inc.php
|
||||
_buildConfig > /srv/src/config.inc.php
|
||||
|
||||
caddy run --config /etc/caddy/Caddyfile
|
1
src/.gitignore
vendored
1
src/.gitignore
vendored
@ -1 +1,2 @@
|
||||
vendor/
|
||||
config.inc.php
|
3
src/example.config.inc.php
Executable file
3
src/example.config.inc.php
Executable file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
define('URL','http://localhost:8080');
|
@ -30,7 +30,12 @@ switch ($url[0]) {
|
||||
}
|
||||
$ip = getUserIP();
|
||||
|
||||
$viewport = $_REQUEST['viewport'];
|
||||
$viewport = $_REQUEST['viewport'] ?? '1024x768';
|
||||
if (!preg_match('/^\d+x\d+$/', $viewport)) {
|
||||
header('HTTP/1.0 400 Bad Request');
|
||||
echo 'Invalid viewport format. Use WIDTHxHEIGHT (e.g., 1024x768)';
|
||||
exit;
|
||||
}
|
||||
$js = $_REQUEST['js'] == 'false' ? false : true;
|
||||
|
||||
$serverUrl = 'http://localhost:4444';
|
||||
|
Reference in New Issue
Block a user