[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Example Nginx config from Guix manual does not work
From: |
Adam Kandur |
Subject: |
Example Nginx config from Guix manual does not work |
Date: |
Fri, 23 Dec 2022 18:39:32 -0000 |
Hi guix!
(service nginx-service-type
(nginx-configuration
(server-blocks
(list (nginx-server-configuration
produce this nginx config
user nginx nginx;
pid /var/run/nginx/pid;
error_log /var/log/nginx/error.log info;
events { }
http {
client_body_temp_path /var/run/nginx/client_body_temp;
proxy_temp_path /var/run/nginx/proxy_temp;
fastcgi_temp_path /var/run/nginx/fastcgi_temp;
uwsgi_temp_path /var/run/nginx/uwsgi_temp;
scgi_temp_path /var/run/nginx/scgi_temp;
access_log /var/log/nginx/access.log;
include /gnu/store/dngffa0df8zsxlbi630656688zhly6p5-nginx-1.23.2/share/nginx/conf/mime.types;
server {
listen 80;
listen 443 ssl;
index index.html ;
server_tokens off;
}
}
Which will not work because it asks to listen on 443 with ssl, which is not possible because no certificates are provided. Removing the line "listen 443 ssl;" solves this problem.
- Example Nginx config from Guix manual does not work,
Adam Kandur <=