aboutsummaryrefslogtreecommitdiffstats
path: root/roles/hastebin/vars
diff options
context:
space:
mode:
authorStonewall Jackson <stonewall@sacredheartsc.com>2023-02-04 01:23:43 -0500
committerStonewall Jackson <stonewall@sacredheartsc.com>2023-02-04 01:52:13 -0500
commit0261e875679f1bf63c8d689da7fc7e014597885d (patch)
tree3f19cd74a0c1070944f75437f30b098d6ef2ffcb /roles/hastebin/vars
downloadselfhosted-0261e875679f1bf63c8d689da7fc7e014597885d.tar.gz
selfhosted-0261e875679f1bf63c8d689da7fc7e014597885d.zip
initial commit
Diffstat (limited to 'roles/hastebin/vars')
-rw-r--r--roles/hastebin/vars/main.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/roles/hastebin/vars/main.yml b/roles/hastebin/vars/main.yml
new file mode 100644
index 0000000..cfb474b
--- /dev/null
+++ b/roles/hastebin/vars/main.yml
@@ -0,0 +1,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>