Configure/deploy HTTP upload service on uploads.kosmos.chat

https://xmpp.org/extensions/xep-0363.html

(Does not contain the config for ejabberd itself yet.)
This commit is contained in:
2020-11-23 17:37:14 +01:00
parent 21be68feb5
commit 9efb9cd78c
6 changed files with 139 additions and 10 deletions

View File

@@ -0,0 +1,19 @@
<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
# Generated by Chef
server {
listen 443 ssl http2;
server_name <%= @server_name %>;
ssl_certificate <%= @ssl_cert %>;
ssl_certificate_key <%= @ssl_key %>;
root /var/www/upload;
client_max_body_size <%= @max_upload_size_mb %>m;
location / {
perl upload::handle;
}
}
<% end -%>