aboutsummaryrefslogtreecommitdiffstats
path: root/roles/hastebin/vars/main.yml
blob: cfb474b5ed6d2ff93a0b6df1c51abeb4412e9aa2 (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
hastebin_packages:
  - git
  - nodejs

hastebin_home: /var/lib/hastebin
hastebin_install_dir: '{{ hastebin_home }}/haste-server'
hastebin_data_dir: '{{ hastebin_home }}/data'
hastebin_git_repo: https://github.com/toptal/haste-server
hastebin_keytab: /var/lib/gssproxy/clients/{{ hastebin_user }}.keytab

hastebin_jquery_url: https://code.jquery.com/jquery-1.7.1.min.js

hastebin_archive_shell: >-
  TIMESTAMP=$(date +%Y%m%d%H%M%S);
  tar czf "hastebin-${TIMESTAMP}.tar.gz"
  --transform "s|^\.|hastebin-${TIMESTAMP}|"
  -C "{{ hastebin_data_dir }}" .

hastebin_apache_config: |
  {{ apache_proxy_config }}
  ProxyPass        / http://127.0.0.1:{{ hastebin_port }}/
  ProxyPassReverse / http://127.0.0.1:{{ hastebin_port }}/

  <Location /documents>
    <Limit POST PUT DELETE>
      {% for cidr in hastebin_upload_cidrs %}
      Require ip {{ cidr }}
      {% endfor %}
    </Limit>
  </Location>