Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
caserver-proxy
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
puma
server
caserver-proxy
Commits
2567f2cd
Commit
2567f2cd
authored
1 year ago
by
Giacomo Strangolino
Browse files
Options
Downloads
Patches
Plain Diff
bound to cumbia 2.0
parent
f89ccc91
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
meson.build
+3
-3
3 additions, 3 deletions
meson.build
src/config.h
+1
-1
1 addition, 1 deletion
src/config.h
src/main.cpp
+2
-2
2 additions, 2 deletions
src/main.cpp
with
6 additions
and
6 deletions
meson.build
+
3
−
3
View file @
2567f2cd
project
(
'caserver-proxy'
,
'cpp'
,
version
:
'1.
0.1
'
,
project
(
'caserver-proxy'
,
'cpp'
,
version
:
'1.
1.0
'
,
default_options
:
[
'c_std=c17'
,
'cpp_std=c++17'
])
project_description
=
'Keep a record for each active client of the caserver service'
...
...
@@ -6,13 +6,13 @@ project_description = 'Keep a record for each active client of the caserver serv
srv_version
=
meson
.
project_version
()
# set in project()
# enable pinfo cuprintf
cpp_arguments
=
[
'-DCUMBIA_DEBUG_OUTPUT=1'
,
'-D__CA
REGISTRAR
_VERSION__="'
+
srv_version
+
'"'
]
cpp_arguments
=
[
'-DCUMBIA_DEBUG_OUTPUT=1'
,
'-D__CA
PROXY
_VERSION__="'
+
srv_version
+
'"'
]
link_arguments
=
[]
openssldep
=
dependency
(
'openssl'
)
curldep
=
dependency
(
'libcurl'
)
# for activities / threads
cumbiadep
=
dependency
(
'cumbia'
,
version
:
'>=
1.4
.0'
)
cumbiadep
=
dependency
(
'cumbia'
,
version
:
'>=
2.0
.0'
)
systemd_dep
=
dependency
(
'systemd'
)
caserverlib_dep
=
dependency
(
'caserver-lib'
)
...
...
This diff is collapsed.
Click to expand it.
src/config.h
+
1
−
1
View file @
2567f2cd
#ifndef CONFIG_H
#define CONFIG_H
#define CA
REGISTRAR
_VERSION __CA
REGISTRAR
_VERSION__
#define CA
PROXY
_VERSION __CA
PROXY
_VERSION__
#endif // CONFIG_H
This diff is collapsed.
Click to expand it.
src/main.cpp
+
2
−
2
View file @
2567f2cd
...
...
@@ -85,7 +85,7 @@ int main(int argc, char *argv[]) {
if
(
log_i
)
log
=
new
CuLog
(
log_i
);
// end logging setup
log
->
write
(
"main.cpp"
,
"enter: "
+
std
::
string
(
argv
[
0
])
+
" version "
+
std
::
string
(
CA
REGISTRAR
_VERSION
),
CuLog
::
LevelAll
);
log
->
write
(
"main.cpp"
,
"enter: "
+
std
::
string
(
argv
[
0
])
+
" version "
+
std
::
string
(
CA
PROXY
_VERSION
),
CuLog
::
LevelAll
);
if
(
getuid
()
==
0
&&
!
opts
.
containsKey
(
"user"
))
{
log_i
->
write
(
"main.cpp"
,
"cannot run as root and
\"
-s username
\"
command line argument missing"
,
CuLog
::
LevelError
);
...
...
@@ -143,7 +143,7 @@ int main(int argc, char *argv[]) {
if
(
!
opts
.
containsKey
(
"supervisor-server-address"
)
||
!
opts
.
containsKey
(
"supervisor-server-port"
))
printf
(
"\e[1;33m # \e[0mmain.cpp: supervisor-server-address and supervisor-server-port options missing: will not use ca-supervisor
\n
"
);
printf
(
"\e[1;32m # \e[0mmain.cpp: \e[1;32mca-proxy version \e[2;32m%s\e[0m started
\n
"
,
CA
REGISTRAR
_VERSION
);
printf
(
"\e[1;32m # \e[0mmain.cpp: \e[1;32mca-proxy version \e[2;32m%s\e[0m started
\n
"
,
CA
PROXY
_VERSION
);
loo_s
->
exec
();
printf
(
"leaving loop
\n
"
);
if
(
proxy_proc
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment