Compare commits

..

4 Commits

Author SHA1 Message Date
5gi
e2511e77e1 added the install of libbrotli-dev
for some reason it refuses to install without it
2024-03-10 14:38:06 -04:00
5gi
2ed63b080d Merge pull request 'Wrong production url... 💀' (#4) from 5gi/NginxInstaller:master into master
Reviewed-on: #4
2023-12-21 16:26:32 -05:00
5gi ☑
3389142e00 Merge remote-tracking branch 'origin/master' 2023-12-21 16:25:46 -05:00
5gi ☑
a53beb587f Wrong Production URL 2023-12-21 16:25:34 -05:00

4
app.js
View File

@@ -1,7 +1,7 @@
document.getElementById("submit").addEventListener("click", generateQuickCmd, false);
const debug = false; // DISABLE FOR PRODUCTION
const baseURL = debug ? "http://localhost:8081/ngx" : "https://dev.nevets.tech/ngx";
const baseURL = debug ? "http://localhost:8081/ngx" : "https://api.nevets.tech/ngx";
const service = "[Unit]\n" +
"Description=The NGINX HTTP and reverse proxy server\n" +
@@ -91,7 +91,7 @@ function buildCmd() {
" exit\n" +
"fi\n\n" +
"apt-get update\n" +
"apt-get install -y build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl-dev wget git\n" +
"apt-get install -y libbrotli-dev build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl-dev wget git\n" +
"wget https://nginx.org/download/nginx-" + extractNginxVersion(nginxStr) + ".tar.gz\n" +
"tar -xzvf " + "nginx-" + extractNginxVersion(nginxStr) + ".tar.gz\n";
if (document.getElementById("extMod").checked === true) {