97 lines
2.7 KiB
YAML
97 lines
2.7 KiB
YAML
---
|
|
glob_moinmoin:
|
|
data_dir: /var/local/wiki/data
|
|
front_page: PageAccueil
|
|
interwikiname: CransWiki
|
|
ip_autorised:
|
|
- ip.startswith('185.230.76.') # IPv4 Crans
|
|
- ip.startswith('185.230.77.')
|
|
- ip.startswith('185.230.78.')
|
|
- ip.startswith('185.230.79.')
|
|
- ip.startswith('172.16.') # IPv4 local
|
|
- ip.startswith('138.231.')
|
|
- ip.startswith('45.66.108.') # IPv4 Aurore
|
|
- ip.startswith('45.66.109.')
|
|
- ip.startswith('45.66.110.')
|
|
- ip.startswith('45.66.111.')
|
|
- ip.startswith('2a0c:700:') # IPv6 Crans
|
|
- ip.startswith('2a09:6840:') # IPv6 Aurore
|
|
mail:
|
|
from: Crans Wiki <wiki@crans.org>
|
|
server: smtp.adm.crans.org
|
|
main: false
|
|
new_account_ip:
|
|
- 45.66.108.0/22, # IPv4 Aurore
|
|
- 100.64.0.0/10, # IPv4 adherents
|
|
- 138.231.175.203/32, # IPv4 PC Kfet
|
|
- 172.16.0.0/16, # IPv4 local
|
|
- 185.230.76.0/22, # IPv4 Crans
|
|
- 2a0c:700::/32, # IPv6 Crans
|
|
- 2a09:6840::/32, # IPv6 Aurore
|
|
site_name: Crans Wiki
|
|
superuser:
|
|
- u"Benjamin"
|
|
- u"DsAc"
|
|
- u"PeBecue"
|
|
- u"SolalNathan"
|
|
- u"VanilleNiven"
|
|
- u"WikiAeltheos"
|
|
- u"WikiBleizi"
|
|
- u"WikiGabo"
|
|
- u"WikiKorenstin"
|
|
- u"WikiLzebulon"
|
|
- u"WikiPigeonMoelleux"
|
|
- u"WikiPollion"
|
|
- u"WikiShirenn"
|
|
- u"Wiki20-100"
|
|
|
|
loc_nginx:
|
|
extra_params:
|
|
- "limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s;"
|
|
service_name: wiki
|
|
ssl: []
|
|
servers:
|
|
- server_name: "{{ query('ldap', 'ip', ansible_hostname, 'adm') | ansible.utils.ipwrap + [ansible_hostname, ansible_hostname + '.adm.crans.org'] }}"
|
|
default: true
|
|
access_log: "/var/log/nginx/wiki.log combined"
|
|
error_log: "/var/log/nginx/wiki.error.log"
|
|
additional_params:
|
|
- "rewrite ^/$ $scheme://wiki.crans.org/PageAccueil"
|
|
- "client_max_body_size 15M"
|
|
|
|
locations:
|
|
- filter: "/wiki/"
|
|
params:
|
|
- "alias /var/local/wiki/htdocs/"
|
|
|
|
- filter: "/robots.txt"
|
|
params:
|
|
- "alias /var/local/wiki/robots.txt"
|
|
|
|
- filter: "/favicon.ico"
|
|
params:
|
|
- "alias /var/local/wiki/favicon.ico"
|
|
|
|
- filter: "/www-sitemap.xml"
|
|
params:
|
|
- "alias /var/local/wiki/www-sitemap.xml"
|
|
|
|
- filter: "/"
|
|
params:
|
|
- "limit_req zone=mylimit burst=100 nodelay"
|
|
- "uwsgi_pass unix:///var/run/uwsgi/app/moinmoin/socket"
|
|
- "include uwsgi_params"
|
|
|
|
logos:
|
|
- which: crans_logo_white.svg
|
|
where: /var/local/wiki/htdocs/logo.svg
|
|
owner: root
|
|
group: www-data
|
|
mode: '0644'
|
|
|
|
- which: crans_favicon.ico
|
|
where: /var/local/wiki/favicon.ico
|
|
owner: root
|
|
group: www-data
|
|
mode: '0644'
|