Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Thomas Gambier
slapos
Commits
2337e24a
Commit
2337e24a
authored
Jan 17, 2023
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/seleniumrunner: Replace caddy with haproxy
parent
4203e1a2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
27 deletions
+57
-27
software/seleniumserver/buildout.hash.cfg
software/seleniumserver/buildout.hash.cfg
+1
-1
software/seleniumserver/instance-selenium.cfg.in
software/seleniumserver/instance-selenium.cfg.in
+55
-25
software/seleniumserver/software.cfg
software/seleniumserver/software.cfg
+1
-1
No files found.
software/seleniumserver/buildout.hash.cfg
View file @
2337e24a
...
@@ -19,4 +19,4 @@ md5sum = 10e19df182c692b71ea552da183a0bcf
...
@@ -19,4 +19,4 @@ md5sum = 10e19df182c692b71ea552da183a0bcf
[template-selenium]
[template-selenium]
filename = instance-selenium.cfg.in
filename = instance-selenium.cfg.in
md5sum =
9b4742e8a249aef38c7c8c12d74b0605
md5sum =
2d84d5fb9306b88ef71e101acb46f684
software/seleniumserver/instance-selenium.cfg.in
View file @
2337e24a
...
@@ -145,44 +145,74 @@ username = selenium
...
@@ -145,44 +145,74 @@ username = selenium
bytes = 12
bytes = 12
[selenium-server-frontend-config]
[selenium-server-frontnend-certificate]
recipe = slapos.recipe.template
recipe = plone.recipe.command
output = $${directory:etc}/$${:_buildout_section_name_}
command =
inline =
if [ ! -e $${:cert-file} ]
https://[$${:ip}]:$${:port} {
then
bind $${:ip}
${openssl-output:openssl} req -x509 -nodes -days 3650 \
tls self_signed # TODO
-subj "/C=AA/ST=X/L=X/O=Dis/CN=$${:common-name}" \
proxy / $${selenium-server-hub-instance:base-url} {
-newkey rsa:2048 -keyout $${:cert-file} \
transparent
-out $${:cert-file}
}
fi
basicauth $${selenium-server-admin-password:username} $${selenium-server-admin-password:passwd} {
update-command = $${:command}
realm "Grid Admin"
cert-file = $${directory:var}/$${:_buildout_section_name_}.pem
$${:path-admin}
common-name = $${selenium-server-frontend-configuration:ip}
}
location =
basicauth $${selenium-server-selenium-password:username} $${selenium-server-selenium-password:passwd} {
$${:cert-file}
realm "Selenium Server"
$${:path-hub}
[selenium-server-frontend-configuration]
}
}
ip = $${slap-configuration:ipv6-random}
ip = $${slap-configuration:ipv6-random}
hostname = [$${:ip}]
hostname = [$${:ip}]
port = 9443
port = 9443
path-admin = /grid/console
path-admin = /grid/console
path-hub = /wd/hub
path-hub = /wd/hub
pidfile = $${directory:run}/haproxy.pid
[selenium-server-frontend-config]
recipe = slapos.recipe.template:jinja2
url = ${stack-haproxy-default-backend-config:target}
output = $${directory:etc}/$${:_buildout_section_name_}
context =
key pidfile selenium-server-frontend-configuration:pidfile
key content :content
content =
frontend app
log global
bind $${selenium-server-frontend-configuration:ip}:$${selenium-server-frontend-configuration:port} ssl crt $${selenium-server-frontnend-certificate:cert-file} alpn h2,http/1.1
use_backend hub if { path_beg $${selenium-server-frontend-configuration:path-hub} }
use_backend admin if { path_beg $${selenium-server-frontend-configuration:path-admin} }
userlist hub
user $${selenium-server-selenium-password:username} insecure-password $${selenium-server-selenium-password:passwd}
backend hub
acl auth_ok http_auth(hub)
http-request auth realm "Selenium Server" unless auth_ok
server hub $${selenium-server-hub-instance:hostname}:$${selenium-server-hub-instance:port}
userlist admin
user $${selenium-server-admin-password:username} insecure-password $${selenium-server-admin-password:passwd}
backend admin
acl auth_ok http_auth(admin)
http-request auth realm "Grid Admin" unless auth_ok
server admin $${selenium-server-hub-instance:hostname}:$${selenium-server-hub-instance:port}
[selenium-server-frontend-instance]
[selenium-server-frontend-instance]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
wrapper-path = $${directory:services}/$${:_buildout_section_name_}
wrapper-path = $${directory:services}/$${:_buildout_section_name_}
command-line =
command-line =
${caddy:output} -conf $${selenium-server-frontend-config:output}
${haproxy:location}/sbin/haproxy -f $${selenium-server-frontend-config:output}
hash-existing-files = $${buildout:directory}/software_release/buildout.cfg
hash-files =
$${selenium-server-frontend-config:output}
ip = $${selenium-server-frontend-config:ip}
ip = $${selenium-server-frontend-config
uration
:ip}
hostname = $${selenium-server-frontend-config:hostname}
hostname = $${selenium-server-frontend-config
uration
:hostname}
port = $${selenium-server-frontend-config:port}
port = $${selenium-server-frontend-config
uration
:port}
admin-url = https://$${selenium-server-admin-password:username}:$${selenium-server-admin-password:passwd}@$${:hostname}:$${:port}$${selenium-server-frontend-config:path-admin}
admin-url = https://$${selenium-server-admin-password:username}:$${selenium-server-admin-password:passwd}@$${:hostname}:$${:port}$${selenium-server-frontend-config
uration
:path-admin}
url = https://$${selenium-server-selenium-password:username}:$${selenium-server-selenium-password:passwd}@$${:hostname}:$${:port}$${selenium-server-frontend-config:path-hub}
url = https://$${selenium-server-selenium-password:username}:$${selenium-server-selenium-password:passwd}@$${:hostname}:$${:port}$${selenium-server-frontend-config
uration
:path-hub}
[userinfo]
[userinfo]
...
...
software/seleniumserver/software.cfg
View file @
2337e24a
...
@@ -10,11 +10,11 @@ extends =
...
@@ -10,11 +10,11 @@ extends =
../../component/chromedriver/buildout.cfg
../../component/chromedriver/buildout.cfg
../../component/coreutils/buildout.cfg
../../component/coreutils/buildout.cfg
../../component/java/buildout.cfg
../../component/java/buildout.cfg
../../component/caddy/buildout.cfg
../../component/openssh/buildout.cfg
../../component/openssh/buildout.cfg
../../component/fonts/buildout.cfg
../../component/fonts/buildout.cfg
../../component/fontconfig/buildout.cfg
../../component/fontconfig/buildout.cfg
../../stack/slapos.cfg
../../stack/slapos.cfg
../../stack/haproxy/default-backend.cfg
./buildout.hash.cfg
./buildout.hash.cfg
../../stack/monitor/buildout.cfg
../../stack/monitor/buildout.cfg
...
...
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