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
Carlos Ramos Carreño
slapos
Commits
66b5abea
Commit
66b5abea
authored
Jul 07, 2023
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack/drupal: add proxy to .well-know backend server
parent
93d4e5a0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
5 deletions
+17
-5
software/drupal/instance-drupal-input-schema.json
software/drupal/instance-drupal-input-schema.json
+6
-0
stack/drupal/apache.conf.in
stack/drupal/apache.conf.in
+1
-0
stack/drupal/buildout.cfg
stack/drupal/buildout.cfg
+2
-1
stack/drupal/buildout.hash.cfg
stack/drupal/buildout.hash.cfg
+4
-4
stack/drupal/drupal-instance.cfg.in
stack/drupal/drupal-instance.cfg.in
+3
-0
stack/drupal/instance.cfg.in
stack/drupal/instance.cfg.in
+1
-0
No files found.
software/drupal/instance-drupal-input-schema.json
View file @
66b5abea
...
...
@@ -33,6 +33,12 @@
"title"
:
"Admin username"
,
"description"
:
"Admin username."
,
"type"
:
"string"
},
"instance.wellknown-proxy"
:
{
"title"
:
"Well-known backend URL"
,
"description"
:
"Backend URL for /.well-known/acme-challenge to add as proxy. This is usefull to automatically sign certifcate with letsencrypt."
,
"type"
:
"string"
,
"format"
:
"uri"
}
}
}
stack/drupal/apache.conf.in
View file @
66b5abea
...
...
@@ -7,6 +7,7 @@ Listen {{ parameter_dict['ip'] }}:{{ parameter_dict['node-port'] }}
ProxyRequests Off
ProxyPreserveHost on
ProxyPass / http://{{ parameter_dict['node-server'] }}/
ProxyPassReverse / http://{{ parameter_dict['node-server'] }}/
...
...
stack/drupal/buildout.cfg
View file @
66b5abea
...
...
@@ -61,7 +61,7 @@ environment =
[pathauto.pattern.article.yml]
<= template-download-base
url = ${:_profile_base_location_}/
config/
${:filename}
url = ${:_profile_base_location_}/${:filename}
# Update stack lamp for drupal
...
...
@@ -78,6 +78,7 @@ context =
key buildout_egg_directory buildout:eggs-directory
key buildout_develop_directory buildout:develop-eggs-directory
key buildout_directory buildout:directory
key custom_application_template custom-application-deployment:path
key template_instance_drupal template-drupal-instance:target
key instance_lamp lamp-instance:output
key composer_location composer:location
...
...
stack/drupal/buildout.hash.cfg
View file @
66b5abea
[instance]
filename = instance.cfg.in
md5sum =
ee73fe8e6b6959cfa137a02b9ce038f0
md5sum =
70abf44d3fd17771c9829a7285b904f6
[template-drupal-instance]
filename = drupal-instance.cfg.in
md5sum =
680ba3cbecae8b25e677a1b6e7aacfc
7
md5sum =
8ebc6c67e912c612f6f9801a3db4790
7
[template-settings.php]
filename = default.settings.php.in
...
...
@@ -16,8 +16,8 @@ md5sum = 2692b85c568694c618255095ecea11c5
[template-drupal-apache.conf]
filename = apache.conf.in
md5sum = f
a1d986228151256cacab67037ce4bfc
md5sum = f
ecd0db8de8134eec6907091e417a5e5
[pathauto.pattern.article.yml]
filename = pathauto.pattern.article.yml
filename =
config/
pathauto.pattern.article.yml
md5sum = 92bea34b59f3493336eb593c8957fdc9
stack/drupal/drupal-instance.cfg.in
View file @
66b5abea
...
...
@@ -5,6 +5,7 @@ extends =
{{ logrotate_cfg }}
{{ nxdtest_template }}
{{ templace_apache_php }}
{{ parameter_dict["custom-application-template"] }}
parts +=
drupal-site-install
...
...
@@ -17,6 +18,7 @@ offline = true
[apache-php-configuration]
document-root = ${:default-document-root}/docroot
wellknown-proxy = ${instance-parameter:well-known-url}
[template-base]
recipe = slapos.recipe.template:jinja2
...
...
@@ -169,6 +171,7 @@ site-name = ${slap-parameter:instance.site-name}
site-mail = ${slap-parameter:instance.site-mail}
account-name = ${slap-parameter:instance.account-name}
account-mail = ${slap-parameter:instance.account-mail}
well-known-url = {{ slapparameter_dict.get("instance.wellknown-proxy", "") }}
[publish-connection-information]
admin-username = ${instance-parameter:account-name}
...
...
stack/drupal/instance.cfg.in
View file @
66b5abea
...
...
@@ -15,6 +15,7 @@ offline = true
[dynamic-template-drupal-parameters]
# Additional parameters for instance apache-php
php8 = !py!{{ application_deployment_php8 }}
custom-application-template = {{ custom_application_template }}
[dynamic-template-drupal]
<= jinja2-template-base
...
...
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