Role za registrator bi moral delovati na fresh alpine installu
This commit is contained in:
parent
57923a51ad
commit
d5b6fe1d92
2 changed files with 69 additions and 11 deletions
43
roles/registrator/templates/zzz-registrator.conf.j2
Normal file
43
roles/registrator/templates/zzz-registrator.conf.j2
Normal file
|
@ -0,0 +1,43 @@
|
|||
<IfModule mod_ssl.c>
|
||||
<Virtualhost *:443>
|
||||
DocumentRoot /home/registrator/registrator
|
||||
<Directory "/home/registrator/registrator">
|
||||
#
|
||||
# Possible values for the Options directive are "None", "All",
|
||||
# or any combination of:
|
||||
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
|
||||
#
|
||||
# Note that "MultiViews" must be named *explicitly* --- "Options All"
|
||||
# doesn't give it to you.
|
||||
#
|
||||
# The Options directive is both complicated and important. Please see
|
||||
# http://httpd.apache.org/docs/2.4/mod/core.html#options
|
||||
# for more information.
|
||||
#
|
||||
Options Indexes FollowSymLinks
|
||||
|
||||
#
|
||||
# AllowOverride controls what directives may be placed in .htaccess files.
|
||||
# It can be "All", "None", or any combination of the keywords:
|
||||
# AllowOverride FileInfo AuthConfig Limit
|
||||
#
|
||||
AllowOverride None
|
||||
|
||||
#
|
||||
# Controls who can get stuff from this server.
|
||||
#
|
||||
AuthType openid-connect
|
||||
Require valid-user
|
||||
</Directory>
|
||||
|
||||
ServerName {{ dns_name }}
|
||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
||||
SSLCertificateFile /etc/letsencrypt/live/{{dns_name}}/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/{{dns_name}}/privkey.pem
|
||||
</Virtualhost>
|
||||
</IfModule>
|
||||
<IfModule mod_ssl.c>
|
||||
<Virtualhost *:80>
|
||||
ServerName {{ dns_name }}
|
||||
</Virtualhost>
|
||||
</IfModule>
|
Loading…
Add table
Add a link
Reference in a new issue