From ca0a46781dd9011e2fb12e3be1746ab2cfc37089 Mon Sep 17 00:00:00 2001 From: Andrew Tropin Date: Wed, 26 Apr 2023 07:08:38 +0400 Subject: [PATCH] Add server_tokens off. --- rde/channels-lock.scm | 4 ++-- src/tropin/machines.scm | 9 +++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/rde/channels-lock.scm b/rde/channels-lock.scm index 457c44f..b79b2ba 100644 --- a/rde/channels-lock.scm +++ b/rde/channels-lock.scm @@ -5,7 +5,7 @@ (url "https://git.sr.ht/~abcdw/rde") (branch "master") (commit - "38e9f3233c38e4809681feeab6c5e2abae55d0bb") + "0c96d34a34f95776f0d408a30d167b7ee3244d8a") (introduction (make-channel-introduction "257cebd587b66e4d865b3537a9a88cccd7107c95" @@ -16,7 +16,7 @@ (url "https://git.savannah.gnu.org/git/guix.git") (branch "master") (commit - "c371555a4b46a5c9288f54753b0f158f9c4b8abc") + "7c7853d269fe53271dd35d5bd941d18a2cb55120") (introduction (make-channel-introduction "9edb3f66fd807b096b48283debdcddccfea34bad" diff --git a/src/tropin/machines.scm b/src/tropin/machines.scm index e1476d9..2ec10a1 100644 --- a/src/tropin/machines.scm +++ b/src/tropin/machines.scm @@ -95,18 +95,15 @@ (record off)))))))) (define (get-nginx-conf) - `(;; TODO: Move it to nginx service - (user nginx nginx) - (pid /var/run/nginx/pid) - - (load_module ,(file-append nginx-rtmp-module + `((load_module ,(file-append nginx-rtmp-module "/etc/nginx/modules/ngx_rtmp_module.so")) ,#~"" (events ()) ,#~"" (http ,(append - `((include ,(file-append nginx "/share/nginx/conf/mime.types"))) + `((server_tokens off) + (include ,(file-append nginx "/share/nginx/conf/mime.types"))) (interpose (list (guix-mirror-server-context -- 2.45.2