commit - 360f3aea9198de6c93e8a185f87641b59c96dbfe
commit + 6c8aa58fb8d3f1ee21b1388770cf1fd607413ed4
blob - 5c88297ebe76ed933413a7394782c0530dc5b0f0
blob + 655d5a4af391c379320aa818045226c9f6757c02
--- gotwebd/gotwebd.conf.5
+++ gotwebd/gotwebd.conf.5
will be used.
.It Ic prefork Ar number
Run the specified number of server processes.
-.It Ic fgci_socket Ar on | off
-Controls whether the server will listen on FCGI TCP sockets by default.
.It Ic unix_socket Ar on | off
Controls whether the servers will listen on unix sockets by default.
.It Ic unix_socket_name Ar path
.It Ic custom_css Ar path
Set the path to a custom Cascading Style Sheet (CSS) to be used.
If this option is not specified then a default style sheet will be used.
-.It Ic fgci_socket Ar on | off
-Enable or disable listening on FCGI TCP sockets.
.It Ic listen on Ar address Ic port Ar number
Configure an address and port for incoming FCGI TCP connections.
Valid
#server "localhost-tcp" {
# repos_path "/got/public"
# unix_socket off
-# fcgi_socket on
# listen on 127.0.0.1 port 9000
# listen on ::1 port 9000
#}
blob - 5d7373f2b4dc57c21636901682103257c86d3646
blob + 0e4e5d563e08acd3a08ee2114c3cb043cb55d2bd
--- gotwebd/gotwebd.h
+++ gotwebd/gotwebd.h
int unix_socket;
char unix_socket_name[PATH_MAX];
-
- int fcgi_socket;
};
struct querystring {
blob - e5dbb389e17efbf6b7055d59bb2268ebbc47807c
blob + 10244c2d15ca0a6e32c4e2eb7eedb45fa47fcc67
--- gotwebd/parse.y
+++ gotwebd/parse.y
}
free($2);
}
- | FCGI_SOCKET boolean {
- gotwebd->fcgi_socket = $2;
- }
| UNIX_SOCKET boolean {
gotwebd->unix_socket = $2;
}
yyerror("could not get addrs");
YYERROR;
}
+ new_srv->fcgi_socket = 1;
}
| MAX_REPOS NUMBER {
if ($2 > 0)
| MAX_COMMITS_DISPLAY NUMBER {
if ($2 > 0)
new_srv->max_commits_display = $2;
- }
- | FCGI_SOCKET boolean {
- new_srv->fcgi_socket = $2;
}
| UNIX_SOCKET boolean {
new_srv->unix_socket = $2;
static const struct keywords keywords[] = {
{ "chroot", CHROOT },
{ "custom_css", CUSTOM_CSS },
- { "fcgi_socket", FCGI_SOCKET },
{ "listen", LISTEN },
{ "logo", LOGO },
{ "logo_url" , LOGO_URL },
srv->max_repos = D_MAXREPO;
srv->unix_socket = 1;
- srv->fcgi_socket = gotwebd->fcgi_socket ? gotwebd->fcgi_socket : 0;
+ srv->fcgi_socket = 0;
TAILQ_INIT(&srv->al);
TAILQ_INSERT_TAIL(&gotwebd->servers, srv, entry);