Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
cc335cd5
Commit
cc335cd5
authored
Dec 12, 2017
by
Mathieu Parent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
llng-fastcgi-server: Allow to listen on TCP
This has precedence over the socket
parent
ae361bf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
fastcgi-server/sbin/llng-fastcgi-server
fastcgi-server/sbin/llng-fastcgi-server
+7
-1
No files found.
fastcgi-server/sbin/llng-fastcgi-server
View file @
cc335cd5
...
...
@@ -12,7 +12,8 @@ our $VERSION = '2.0.0';
our
(
$
foreground
,
$
engine
,
$
nproc
,
$
pidFile
,
$
socket
,
$
user
,
$
group
,
$
customFunctionsFile
,
%
plackOptions
$
listen
,
$
group
,
$
customFunctionsFile
,
%
plackOptions
);
my
%
_apps
;
...
...
@@ -24,6 +25,7 @@ $engine ||= $ENV{ENGINE} || 'FCGI';
$
nproc
||=
$
ENV
{
NPROC
}
||
7
;
$
pidFile
||=
$
ENV
{
PID
}
||
'__FASTCGISOCKDIR__/llng-fastcgi.pid'
;
$
socket
||=
$
ENV
{
SOCKET
}
||
'__FASTCGISOCKDIR__/llng-fastcgi.sock'
;
$
listen
||=
$
ENV
{
LISTEN
}
||
undef
;
$
user
||=
$
ENV
{
USER
};
$
group
||=
$
ENV
{
GROUP
};
$
customFunctionsFile
||=
$
ENV
{
CUSTOM_FUNCTIONS_FILE
};
...
...
@@ -35,6 +37,7 @@ GetOptions(
'proc|n=s'
=>
\$
nproc
,
'pid|p=s'
=>
\$
pidFile
,
'socket|s=s'
=>
\$
socket
,
'listen|l=s'
=>
\$
listen
,
'user|u=s'
=>
\$
user
,
'group|g=s'
=>
\$
group
,
'customFunctionsFile|f=s'
=>
\$
customFunctionsFile
,
...
...
@@ -120,6 +123,7 @@ $server->parse_options(
'--pid'
=>
$
pidFile
,
'--nproc'
=>
$
nproc
,
'--socket'
=>
$
socket
,
(
$
listen
?
(
'--listen'
,
$
listen
)
:
()),
'--proc-title'
=>
'llng-fastcgi-server'
,
(
$
foreground
?
()
:
'--daemonize'
),
'--no-default-middleware'
,
...
...
@@ -191,6 +195,8 @@ Each parameter can be set by an option or a environment variable.
=
item
--
socket
-
s
($
ENV
{
SOCKET
}):
Unix
socket
=
item
--
listen
-
l
($
ENV
{
LISTEN
}):
Listening
address
(
HOST
:
PORT
,
:
PORT
,
or
PATH
)
=
item
--
customFunctionsFile
-
f
($
ENV
{
CUSTOM_FUNCTIONS_FILE
}):
file
to
load
for
custom
functions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment