Skip to content

Instantly share code, notes, and snippets.

@licaon-kter
Last active October 25, 2018 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save licaon-kter/eb0263c2f7feb232ca5021c9bff0730f to your computer and use it in GitHub Desktop.
Save licaon-kter/eb0263c2f7feb232ca5021c9bff0730f to your computer and use it in GitHub Desktop.
Conversejs HEAD error 413 on upload
mod_http_fileserver:
docroot: "/usr/local/var/lib/ejabberd/web"
accesslog: "/usr/local/var/log/ejabberd/web.log"
directory_indices:
- "index.html"
custom_headers:
"Access-Control-Allow-Origin": "https://domain.tld"
"Access-Control-Allow-Methods": "GET,HEAD,PUT,OPTIONS"
"Strict-Transport-Security": "max-age=31536000; includeSubDomains"
"Content-Security-Policy": "upgrade-insecure-requests; "
"X-Frame-Options": "SAMEORIGIN"
"X-Xss-Protection": "1; mode=block"
"X-Content-Type-Options": "nosniff"
"Referrer-Policy": "strict-origin"
content_types:
".ogg": "audio/ogg"
".png": "image/png"
".jpg": "image/jpg"
default_content_type: "text/html"
mod_http_upload:
docroot: "/usr/local/var/lib/ejabberd/upload"
put_url: "https://upload.@HOST@"
custom_headers:
"Access-Control-Allow-Origin": "https://domain.tld"
"Access-Control-Allow-Methods": "GET,HEAD,PUT,OPTIONS"
"Access-Control-Allow-Headers": "Content-Type"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment