fixes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
# install_npm_angie.py
|
||||
|
||||
import argparse, os, sys, json, shutil, subprocess, tarfile, tempfile, urllib.request, re, time, threading, signal
|
||||
from pathlib import Path
|
||||
|
||||
@@ -197,6 +197,17 @@ def ensure_nginx_symlink():
|
||||
|
||||
ANGIE_CONF_TEMPLATE = """# run nginx in foreground
|
||||
#daemon off;
|
||||
|
||||
load_module /etc/angie/modules/ngx_http_headers_more_filter_module.so;
|
||||
load_module /etc/angie/modules/ngx_http_brotli_filter_module.so;
|
||||
load_module /etc/angie/modules/ngx_http_brotli_static_module.so;
|
||||
load_module /etc/angie/modules/ngx_http_zstd_filter_module.so;
|
||||
load_module /etc/angie/modules/ngx_http_zstd_static_module.so;
|
||||
|
||||
# other modules
|
||||
include /data/nginx/custom/modules[.]conf;
|
||||
|
||||
|
||||
pid /run/angie/angie.pid;
|
||||
user root;
|
||||
|
||||
@@ -205,8 +216,6 @@ pcre_jit on;
|
||||
|
||||
error_log /data/logs/fallback_error.log warn;
|
||||
|
||||
include /etc/angie/modules/*.conf;
|
||||
|
||||
# Custom
|
||||
include /data/nginx/custom/root_top[.]conf;
|
||||
|
||||
@@ -261,6 +270,7 @@ http {
|
||||
zstd_min_length 256;
|
||||
zstd_comp_level 3;
|
||||
more_clear_headers "Server";
|
||||
more_set_headers 'X-by: linuxiarz.pl';
|
||||
|
||||
# npm
|
||||
include /data/nginx/custom/http_top[.]conf;
|
||||
@@ -711,7 +721,7 @@ def print_summary(info, ipv6_enabled, dark_enabled, update_mode):
|
||||
print(f"Node.js: v{node_v}")
|
||||
print(f"Yarn: v{yarn_v}")
|
||||
print(f"NPM (aplikacja): v{npm_v}")
|
||||
print(f"IPv6: {'WŁĄCZONE (nie usuwano wpisów)' if ipv6_enabled else 'WYŁĄCZONE w konfigach'}")
|
||||
print(f"IPv6: {'ENABLED' if ipv6_enabled else 'DISABLED (in confogs too)'}")
|
||||
print(f"Dark mode (TP): {'TAK' if dark_enabled else 'NIE'}")
|
||||
print("Paths: /opt/npm (app), /data (data), /etc/angie (conf), /var/log/angie (logs)")
|
||||
print("Services: systemctl status angie.service / npm.service")
|
||||
|
||||
Reference in New Issue
Block a user