Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
apache
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
webarch
apache
Commits
c8d9c936
Verified
Commit
c8d9c936
authored
1 year ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
webarch.conf template vars fixed
parent
25289d29
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#30990
passed
1 year ago
Stage: trixie
Stage: bookworm
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+3
-0
3 additions, 0 deletions
.gitlab-ci.yml
.pre-commit-config.yaml
+1
-1
1 addition, 1 deletion
.pre-commit-config.yaml
meta/argument_specs.yml
+12
-0
12 additions, 0 deletions
meta/argument_specs.yml
templates/webarch.conf.j2
+14
-14
14 additions, 14 deletions
templates/webarch.conf.j2
with
30 additions
and
15 deletions
.gitlab-ci.yml
+
3
−
0
View file @
c8d9c936
...
@@ -14,11 +14,14 @@ variables:
...
@@ -14,11 +14,14 @@ variables:
ANSIBLE_FORCE_COLOR
:
"
1"
ANSIBLE_FORCE_COLOR
:
"
1"
ANSIBLE_REMOTE_TMP
:
"
/tmp"
ANSIBLE_REMOTE_TMP
:
"
/tmp"
ANSIBLE_SHELL_ALLOW_WORLD_READABLE_TEMP
:
"
1"
ANSIBLE_SHELL_ALLOW_WORLD_READABLE_TEMP
:
"
1"
DEBIAN_FRONTEND
:
noninteractive
DEFAULT_MANAGED_STR
:
"
Ansible
managed"
MOLECULE_VERBOSITY
:
"
0"
MOLECULE_VERBOSITY
:
"
0"
PY_COLORS
:
"
1"
PY_COLORS
:
"
1"
before_script
:
before_script
:
-
whoami
-
whoami
-
pwd
-
pwd
-
chmod 700 $(pwd)
-
which ansible
-
which ansible
-
ansible --version
-
ansible --version
-
which yamllint
-
which yamllint
...
...
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
+
1
−
1
View file @
c8d9c936
...
@@ -24,7 +24,7 @@ repos:
...
@@ -24,7 +24,7 @@ repos:
language
:
python
language
:
python
additional_dependencies
:
additional_dependencies
:
# https://github.com/kellyjonbrazil/jc/releases
# https://github.com/kellyjonbrazil/jc/releases
-
jc==1.2
3.6
-
jc==1.2
4.0
# https://github.com/jmespath/jmespath.py/tags
# https://github.com/jmespath/jmespath.py/tags
-
jmespath==1.0.1
-
jmespath==1.0.1
# https://github.com/jackdewinter/pymarkdown/releases
# https://github.com/jackdewinter/pymarkdown/releases
...
...
This diff is collapsed.
Click to expand it.
meta/argument_specs.yml
+
12
−
0
View file @
c8d9c936
...
@@ -80,6 +80,10 @@ argument_specs:
...
@@ -80,6 +80,10 @@ argument_specs:
type
:
int
type
:
int
required
:
true
required
:
true
description
:
The port that Apache should listen on the localhost.
description
:
The port that Apache should listen on the localhost.
apache_matomo_domain
:
type
:
str
required
:
false
description
:
An optional Matomo domain name for the webarch.conf template.
apache_md_private_keys
:
apache_md_private_keys
:
type
:
list
type
:
list
elements
:
str
elements
:
str
...
@@ -159,6 +163,14 @@ argument_specs:
...
@@ -159,6 +163,14 @@ argument_specs:
type
:
str
type
:
str
required
:
false
required
:
false
description
:
Internal variable for the PHP version.
description
:
Internal variable for the PHP version.
apache_phpmyadmin_domain
:
type
:
str
required
:
false
description
:
Optional phpMyAdmin domain name for the webarch.conf template.
apache_phpmyadmin_path
:
type
:
str
required
:
false
description
:
Optional phpMyAdmin path for the webarch.conf template.
apache_pkgs_absent
:
apache_pkgs_absent
:
type
:
list
type
:
list
elements
:
str
elements
:
str
...
...
This diff is collapsed.
Click to expand it.
templates/webarch.conf.j2
+
14
−
14
View file @
c8d9c936
...
@@ -25,16 +25,16 @@ Alias /icons /usr/share/apache2/icons
...
@@ -25,16 +25,16 @@ Alias /icons /usr/share/apache2/icons
{%
if
apache_conf_enabled is defined
and
"phpmyadmin"
in
apache_conf_enabled %}
{%
if
apache_conf_enabled is defined
and
"phpmyadmin"
in
apache_conf_enabled %}
SetEnv
PHPMYADMIN_DOMAIN "{{ inventory_hostname }}"
SetEnv
PHPMYADMIN_DOMAIN "{{ inventory_hostname }}"
SetEnv
PHPMYADMIN_PATH "/phpmyadmin/"
SetEnv
PHPMYADMIN_PATH "/phpmyadmin/"
{%
elif phpmyadmin_domain is defined %}
{%
elif
apache_
phpmyadmin_domain is defined %}
SetEnv
PHPMYADMIN_DOMAIN "{{ phpmyadmin_domain }}"
SetEnv
PHPMYADMIN_DOMAIN "{{
apache_
phpmyadmin_domain }}"
{%
if
phpmyadmin_path is defined %}
{%
if
apache_
phpmyadmin_path is defined %}
SetEnv
PHPMYADMIN_PATH "{{ phpmyadmin_path }}"
SetEnv
PHPMYADMIN_PATH "{{
apache_
phpmyadmin_path }}"
{%
else
%}
{%
else
%}
SetEnv
PHPMYADMIN_PATH "/"
SetEnv
PHPMYADMIN_PATH "/"
{%
endif %}
{%
endif %}
{%
endif %}
{%
endif %}
{%
if
matomo_domain is defined %}
{%
if
apache_
matomo_domain is defined %}
SetEnv
PIWIK_DOMAIN "{{ matomo_domain }}"
SetEnv
PIWIK_DOMAIN "{{
apache_
matomo_domain }}"
{%
endif %}
{%
endif %}
SetEnv
HOME_DOMAIN "webarch.net"
SetEnv
HOME_DOMAIN "webarch.net"
SetEnv
SITE_TITLE "Webarchitects Shared Hosting"
SetEnv
SITE_TITLE "Webarchitects Shared Hosting"
...
@@ -135,9 +135,9 @@ ErrorDocument 506 /wsh/506.shtml
...
@@ -135,9 +135,9 @@ ErrorDocument 506 /wsh/506.shtml
SuexecUserGroup
www-data www-data
SuexecUserGroup
www-data www-data
</
IfModule
>
</
IfModule
>
ServerAdmin
support@webarch.net
ServerAdmin
support@webarch.net
{%-
if
matomo_domain is defined %}
{%-
if
apache_
matomo_domain is defined %}
SetEnv
PIWIK_SITE_ID "1"
SetEnv
PIWIK_SITE_ID "1"
SetEnv
PIWIK_SITE_DOMAIN "{{ matomo_domain }}"
SetEnv
PIWIK_SITE_DOMAIN "{{
apache_
matomo_domain }}"
{%-
elif matomo_user is defined %}
{%-
elif matomo_user is defined %}
SetEnv
PIWIK_SITE_ID "1"
SetEnv
PIWIK_SITE_ID "1"
SetEnv
PIWIK_SITE_DOMAIN "stats.{{ inventory_hostname }}"
SetEnv
PIWIK_SITE_DOMAIN "stats.{{ inventory_hostname }}"
...
@@ -145,11 +145,11 @@ ErrorDocument 506 /wsh/506.shtml
...
@@ -145,11 +145,11 @@ ErrorDocument 506 /wsh/506.shtml
DocumentRoot
"/var/www/wsh"
DocumentRoot
"/var/www/wsh"
{%
if
apache_conf_enabled is defined
and
"phpmyadmin"
in
apache_conf_enabled %}
{%
if
apache_conf_enabled is defined
and
"phpmyadmin"
in
apache_conf_enabled %}
RedirectPermanent
/phpmyadmin https://{{ inventory_hostname }}/phpmyadmin
RedirectPermanent
/phpmyadmin https://{{ inventory_hostname }}/phpmyadmin
{%
elif phpmyadmin_domain is defined %}
{%
elif
apache_
phpmyadmin_domain is defined %}
{%
if
phpmyadmin_path is defined %}
{%
if
apache_
phpmyadmin_path is defined %}
RedirectPermanent
/phpmyadmin https://{{ phpmyadmin_domain }}{{ phpmyadmin_path }}
RedirectPermanent
/phpmyadmin https://{{
apache_
phpmyadmin_domain }}{{
apache_
phpmyadmin_path }}
{%
else
%}
{%
else
%}
RedirectPermanent
/phpmyadmin https://{{ phpmyadmin_domain }}
RedirectPermanent
/phpmyadmin https://{{
apache_
phpmyadmin_domain }}
{%
endif %}
{%
endif %}
{%
endif %}
{%
endif %}
<
IfModule
ssl_module
>
<
IfModule
ssl_module
>
...
@@ -186,9 +186,9 @@ ErrorDocument 506 /wsh/506.shtml
...
@@ -186,9 +186,9 @@ ErrorDocument 506 /wsh/506.shtml
SuexecUserGroup
www-data www-data
SuexecUserGroup
www-data www-data
</
IfModule
>
</
IfModule
>
ServerAdmin
"{{ apache_server_admin }}"
ServerAdmin
"{{ apache_server_admin }}"
{%-
if
matomo_domain is defined %}
{%-
if
apache_
matomo_domain is defined %}
SetEnv
PIWIK_SITE_ID "1"
SetEnv
PIWIK_SITE_ID "1"
SetEnv
PIWIK_SITE_DOMAIN "{{ matomo_domain }}"
SetEnv
PIWIK_SITE_DOMAIN "{{
apache_
matomo_domain }}"
{%-
elif matomo_user is defined %}
{%-
elif matomo_user is defined %}
SetEnv
PIWIK_SITE_ID "1"
SetEnv
PIWIK_SITE_ID "1"
SetEnv
PIWIK_SITE_DOMAIN "stats.{{ inventory_hostname }}"
SetEnv
PIWIK_SITE_DOMAIN "stats.{{ inventory_hostname }}"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment