Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos-caddy
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
Guillaume Hervier
slapos-caddy
Commits
8c3da9e6
Commit
8c3da9e6
authored
May 11, 2018
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caddy-frontend: Create default vhost
It is dummy vhost for example.org
parent
d2648882
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
11 deletions
+19
-11
software/caddy-frontend/buildout.hash.cfg
software/caddy-frontend/buildout.hash.cfg
+2
-2
software/caddy-frontend/instance-apache-frontend.cfg
software/caddy-frontend/instance-apache-frontend.cfg
+5
-0
software/caddy-frontend/templates/000.conf.in
software/caddy-frontend/templates/000.conf.in
+12
-9
No files found.
software/caddy-frontend/buildout.hash.cfg
View file @
8c3da9e6
...
...
@@ -19,7 +19,7 @@ md5sum = f686f765e55d1dce2e55a400f0714b3e
[template-apache-frontend]
filename = instance-apache-frontend.cfg
md5sum =
293498fe5c61a72baaf15f9287d36abb
md5sum =
c8ab203bec60416f13aabe3f4233de7f
[template-apache-replicate]
filename = instance-apache-replicate.cfg.in
...
...
@@ -51,7 +51,7 @@ md5sum = f20d6c3d2d94fb685f8d26dfca1e822b
[template-default-virtualhost]
filename = templates/000.conf.in
md5sum =
3b5e20b48112a2cf070481966506d9bf
md5sum =
4dbb8560e4de1af2a0706b020e713fe7
[template-default-slave-virtualhost]
filename = templates/default-virtualhost.conf.in
...
...
software/caddy-frontend/instance-apache-frontend.cfg
View file @
8c3da9e6
...
...
@@ -157,6 +157,11 @@ extensions = jinja2.ext.do
extra-context =
key http_port instance-parameter:configuration.plain_http_port
key https_port instance-parameter:configuration.port
key login_certificate ca-frontend:cert-file
key login_key ca-frontend:key-file
key login_ca_crt ca-custom-frontend:rendered
key ipv4_addr instance-parameter:ipv4-random
key ipv6_addr instance-parameter:ipv6-random
[software-release-path]
template-empty = ${template-empty:target}
...
...
software/caddy-frontend/templates/000.conf.in
View file @
8c3da9e6
# TODO-Caddy <VirtualHost *:{{ https_port }}>
# TODO-Caddy ServerName www.example.org
https://www.example.org:{{ https_port }} {
tls {{ login_certificate }} {{ login_key }}
bind {{ ipv4_addr }}
# TODO-Caddy bind {{ ipv6_addr }}
status 404 /
# TODO-Caddy SSLEngine on
# TODO-Caddy SSLProxyEngine on
# TODO-Caddy SSLProtocol all -SSLv2 -SSLv3
...
...
@@ -13,10 +16,10 @@
# TODO-Caddy
# TODO-Caddy ErrorDocument 404 /notfound.html
# TODO-Caddy
# TODO-Caddy </VirtualHost>
# TODO-Caddy
# TODO-Caddy <VirtualHost *:{{ http_port }}>
# TODO-Caddy
# TODO-Caddy
ServerName www.example.org
# TODO-Caddy ErrorDocument 404 /notfound.html
# TODO-Caddy </VirtualHost>
}
http://www.example.org:{{ http_port }} {
bind {{ ipv4_addr }}
# TODO-Caddy
bind {{ ipv6_addr }}
status 404 /
}
\ 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