Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix new nginx weirdness
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Oct 4, 2021
1 parent b312b98 commit b4a0048
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nginx/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@
include "template.php";
$serv = ob_get_clean();


// dump
$nginx_new = substr($nginx_file, 0, $serv_substart) . $serv . substr($nginx_file, $serv_subend);

// idk why this bug came but we need to fix it
$nginx_new = str_replace(' default_server;', ";", $nginx_new);

if (($_GET['preview'] ?? '') === 'all') {
die($nginx_new);
}
Expand Down

0 comments on commit b4a0048

Please sign in to comment.