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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tom Niget
slapos
Commits
cc124a9a
Commit
cc124a9a
authored
Mar 12, 2018
by
Eteri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caddy: add new release
parent
cbe1ad46
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
20 deletions
+58
-20
stack/caddy/Caddyfile.in
stack/caddy/Caddyfile.in
+39
-8
stack/caddy/buildout.cfg
stack/caddy/buildout.cfg
+4
-4
stack/caddy/gowork.cfg
stack/caddy/gowork.cfg
+2
-2
stack/caddy/instance-caddy.cfg.in
stack/caddy/instance-caddy.cfg.in
+9
-4
stack/caddy/template-caddy-service.sh.in
stack/caddy/template-caddy-service.sh.in
+4
-2
No files found.
stack/caddy/Caddyfile.in
View file @
cc124a9a
...
@@ -16,15 +16,32 @@ root {{ directory_dict['public_html'] }}
...
@@ -16,15 +16,32 @@ root {{ directory_dict['public_html'] }}
{% if parameter_dict['enable-basic-auth'] == 'true' -%}
{% if parameter_dict['enable-basic-auth'] == 'true' -%}
basicauth / {{ parameter_dict['username'] }} {{parameter_dict['password']}}
basicauth / {{ parameter_dict['username'] }} {{parameter_dict['password']}}
{%- endif %}
{%- endif %}
}
{% if parameter_dict['proxy'] == 'true' -%}
{% if parameter_dict['type'] == 'zope' -%}
proxy / {{parameter_dict['url']}}/VirtualHostBase/https/{{ parameter_dict['domain'] }}/VirtualHostRoot/ {
insecure_skip_verify
}
{% else %}
proxy / {{parameter_dict['url']}}
{%- endif %}
{%- endif %}
bind {{caddy_configuration_dict['ipv6']}}
bind {{caddy_configuration_dict['ipv6']}
}
}
{%- endif %}
{%- endif %}
[{{caddy_configuration_dict['ipv6']}}]:{{parameter_dict['port
-ipv6
']}} {
[{{caddy_configuration_dict['ipv6']}}]:{{parameter_dict['port']}} {
tls {{ custom_cert_dict['cert-file'] }} {{ custom_cert_dict['key-file'] }} {
tls {{ custom_cert_dict['cert-file'] }} {{ custom_cert_dict['key-file'] }} {
...
@@ -42,11 +59,25 @@ bind {{caddy_configuration_dict['ipv6']}}
...
@@ -42,11 +59,25 @@ bind {{caddy_configuration_dict['ipv6']}}
basicauth / {{ parameter_dict['username'] }} {{parameter_dict['password']}}
basicauth / {{ parameter_dict['username'] }} {{parameter_dict['password']}}
{%- endif %}
{%- endif %}
bind {{caddy_configuration_dict['ipv6']}}
{% if parameter_dict['proxy'] == 'true' -%}
{% if parameter_dict['type'] == 'zope' -%}
proxy / {{parameter_dict['url']}}/VirtualHostBase/https/[{{caddy_configuration_dict['ipv6']}}]:{{parameter_dict['port']}}/VirtualHostRoot/ {
insecure_skip_verify
}
{% else %}
proxy / {{parameter_dict['url']}}
{%- endif %}
{%- endif %}
bind {{caddy_configuration_dict['ipv6']}}
}
}
[{{caddy_configuration_dict['local_ip']}}]:{{parameter_dict['port
-ipv4
']}} {
[{{caddy_configuration_dict['local_ip']}}]:{{parameter_dict['port']}} {
log {{caddy_configuration_dict['access_log']}}
log {{caddy_configuration_dict['access_log']}}
...
...
stack/caddy/buildout.cfg
View file @
cc124a9a
...
@@ -27,7 +27,7 @@ mode = 0644
...
@@ -27,7 +27,7 @@ mode = 0644
[template-caddyfile]
[template-caddyfile]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/Caddyfile.in
url = ${:_profile_base_location_}/Caddyfile.in
md5sum =
88c4c33e374ea3f61cdd36b2816d24ba
md5sum =
05b8347df3c5803a18a515687a3504e3
filename = Caddyfile.in
filename = Caddyfile.in
location = ${buildout:parts-directory}/${:_buildout_section_name_}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
mode = 0644
mode = 0644
...
@@ -35,7 +35,7 @@ mode = 0644
...
@@ -35,7 +35,7 @@ mode = 0644
[template-caddy]
[template-caddy]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-caddy.cfg.in
url = ${:_profile_base_location_}/instance-caddy.cfg.in
md5sum =
3b796dee5c509393fd396fd019914a2e
md5sum =
4ed3a50a15a793fec330332be30a9f3a
output = ${buildout:directory}/instance-caddy.cfg.in
output = ${buildout:directory}/instance-caddy.cfg.in
mode = 0644
mode = 0644
...
@@ -49,7 +49,7 @@ mode = 0644
...
@@ -49,7 +49,7 @@ mode = 0644
[template-caddy-service]
[template-caddy-service]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/template-caddy-service.sh.in
url = ${:_profile_base_location_}/template-caddy-service.sh.in
md5sum =
5467fac7b95acde681e613ae98ce990d
md5sum =
1736f72c7c76afe133753389da7c0b1f
output = ${buildout:directory}/template-caddy-service.sh.in
output = ${buildout:directory}/template-caddy-service.sh.in
mode = 0644
mode = 0644
...
...
stack/caddy/gowork.cfg
View file @
cc124a9a
...
@@ -9,5 +9,5 @@ depends_gitfetch =
...
@@ -9,5 +9,5 @@ depends_gitfetch =
[go_github.com_mholt_caddy]
[go_github.com_mholt_caddy]
<= go-git-package
<= go-git-package
go.importpath = github.com/mholt/caddy
go.importpath = github.com/mholt/caddy
repository = https://github.com/mholt/caddy
.git
repository = https://github.com/mholt/caddy
revision
= v0.10.10-0-gc4dfbb9956
revision
= v0.10.11-0-gd3f338ddab
stack/caddy/instance-caddy.cfg.in
View file @
cc124a9a
...
@@ -116,16 +116,21 @@ mode = 0600
...
@@ -116,16 +116,21 @@ mode = 0600
recipe = slapos.cookbook:publish
recipe = slapos.cookbook:publish
password = $${slap-parameter:password}
password = $${slap-parameter:password}
user = $${slap-parameter:username}
user = $${slap-parameter:username}
secure_access = https://[$${caddy-configuration:ipv6}]:$${slap-parameter:port-ipv6}
#secure_access = https://[$${caddy-configuration:ipv6}]:$${slap-parameter:port-ipv6}
secure_access = https://[$${caddy-configuration:ipv6}]:$${slap-parameter:port}
[slap-parameter]
[slap-parameter]
domain =
domain =
key-content =
key-content =
cert-content =
cert-content =
caddy-ca-certificate =
caddy-ca-certificate =
port-ipv6 = 9443
#port-ipv6 = 9443
port-ipv4 = 4443
#port-ipv4 = 4443
port = 9443
enable-quic = true
enable-quic = true
enable-basic-auth =
enable-basic-auth =
username = admin
username = admin
password = $${htpasswd:passwd}
password = $${htpasswd:passwd}
proxy = false
type = zope
url =
\ No newline at end of file
stack/caddy/template-caddy-service.sh.in
View file @
cc124a9a
...
@@ -2,8 +2,10 @@
...
@@ -2,8 +2,10 @@
# BEWARE: This file is operated by slapgrid
# BEWARE: This file is operated by slapgrid
# BEWARE: It will be overwritten automatically
# BEWARE: It will be overwritten automatically
{{ caddy_exec }}
-conf {{caddy_configuration_dict['rendered']}}
{{ caddy_exec }}
-conf {{caddy_configuration_dict['rendered']}} \
{%- if parameter_dict['enable-quic'] != 'false' %}
{%- if parameter_dict['enable-quic'] != 'false' %}
-quic
-quic
{%- endif -%}
{%- endif -%}
\ No newline at end of file
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