summaryrefslogtreecommitdiff
path: root/guix/forge
diff options
context:
space:
mode:
authorArun Isaac2023-07-26 00:07:41 +0100
committerArun Isaac2023-07-26 00:07:41 +0100
commit8a8477df910bdc172f298666cf09a94e6ac81b36 (patch)
tree37f49a5bdd53aa4749116b3e922f122615f9ab88 /guix/forge
parent208bb4e42fdcf3335b454d6f8bc7b19c4c3292b3 (diff)
downloadguix-forge-8a8477df910bdc172f298666cf09a94e6ac81b36.tar.gz
guix-forge-8a8477df910bdc172f298666cf09a94e6ac81b36.tar.lz
guix-forge-8a8477df910bdc172f298666cf09a94e6ac81b36.zip
klaus: Serve klaus on a Unix socket by default.
* guix/forge/klaus.scm: Import (forge socket). (klaus-gunicorn-app): Make sockets a keyword argument with a singleton list of Unix sockets as the default.
Diffstat (limited to 'guix/forge')
-rw-r--r--guix/forge/klaus.scm15
1 files changed, 10 insertions, 5 deletions
diff --git a/guix/forge/klaus.scm b/guix/forge/klaus.scm
index 54b374f..12560ed 100644
--- a/guix/forge/klaus.scm
+++ b/guix/forge/klaus.scm
@@ -19,6 +19,7 @@
(define-module (forge klaus)
#:use-module (forge gunicorn)
+ #:use-module (forge socket)
#:use-module ((gnu packages check) #:select (python-nose python-pytest))
#:use-module ((gnu packages python-web)
#:select (python-flask python-werkzeug))
@@ -121,15 +122,19 @@ routes using HTTP Digest Authentication.")
@end itemize")
(license license:isc)))
-(define* (klaus-gunicorn-app repository-directory sockets
- #:key site-name)
- "Return a @code{<gunicorn-app>} object to deploy klaus on
-@var{sockets}, a list of @code{<forge-ip-socket>} or
-@code{<forge-unix-socket>} objects.
+(define* (klaus-gunicorn-app repository-directory
+ #:key
+ (sockets (list (forge-unix-socket
+ (path "/var/run/gunicorn-klaus/socket"))))
+ site-name)
+ "Return a @code{<gunicorn-app>} object to deploy klaus.
@var{repository-directory} is the path to the directory containing git
repositories to serve.
+@var{sockets} is a list of @code{<forge-ip-socket>} or
+@code{<forge-unix-socket>} objects describing sockets to listen on.
+
@var{site-name} is the name of the klaus site to be displayed in the
banner."
(gunicorn-app