aboutsummaryrefslogtreecommitdiff
path: root/roles/apache/README.md
blob: 12f7d7cbe7527a16b23de7ba699c3f2d1fd4b28c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# kompetenzbolzen.stuff.apache


Example config

PHP-Modules and apache mods in example config are always needed.

```
---
php_versions:
  - php8.0

php_extensions:
  - fpm

# Removing will NOT remove the module
apache_mods:
  - ssl
  - rewrite
  - proxy_fcgi

apache_rproxies:
  proxy-sso:
    hostname: test.example.com
    ssl: true
    proxy: https://test-01.example.com:8443/
    apache_custom_conf: |
      ProxyPreserveHost on
      SSLProxyVerify none
      SSLProxyCheckPeerCN off
      SSLProxyCheckPeerName off

apache_vhosts:
  bookstack:
    hostname: asdf.example.com
    php_version: '8.0'
    relative_root: 'webapp/public'
    php_custom_conf: |
      php_value[upload_max_filesize] = 128M
      php_value[post_max_size] = 256M
      php_value[memory_limit] = 512M

apache_nophp_vhosts:
  homer:
    hostname: dashboard.example.com
    relative_root: ''
    apache_custom_conf: ''

apache_ssl_cert: '/etc/ssl/certs/{{ ansible_facts.fqdn }}.pem'
apache_ssl_key: '/etc/ssl/private/{{ ansible_facts.fqdn }}.key'
```