{"id":360,"date":"2021-09-20T14:28:59","date_gmt":"2021-09-20T22:28:59","guid":{"rendered":"https:\/\/nramkumar.org\/tech\/?p=360"},"modified":"2021-09-20T14:29:46","modified_gmt":"2021-09-20T22:29:46","slug":"keeweb-self-hosting-cloudflare","status":"publish","type":"post","link":"https:\/\/nramkumar.org\/tech\/blog\/2021\/09\/20\/keeweb-self-hosting-cloudflare\/","title":{"rendered":"Keeweb self-hosting + Cloudflare"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I had set up <a href=\"https:\/\/keeweb.info\/\">keeweb<\/a> self-hosting and also had cloudflare enabled on the domain that was doing the self-hosting. Everything was working fine until a few days ago when the self-hosted domain simply showed an empty page. Devtools console revealed that the issue was a problem with content security policy in keeweb (does not allow loading scripts from sources other than the domain) and Cloudflare&#8217;s rocket loader features (which adds a cloudflare JS load to the page). The fix was to create a rule in Cloudflare to exclude the self-hosted domain and sub-pages to be excluded from rocket loader. Hope this helps if you are trying these quixotic things and running into strange problems like these.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had set up keeweb self-hosting and also had cloudflare enabled on the domain that was doing the self-hosting. Everything was working fine until a few days ago when the self-hosted domain simply showed an empty page. Devtools console revealed that the issue was a problem with content security policy in keeweb (does not allow&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-360","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/posts\/360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/comments?post=360"}],"version-history":[{"count":3,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/posts\/360\/revisions"}],"predecessor-version":[{"id":364,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/posts\/360\/revisions\/364"}],"wp:attachment":[{"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/media?parent=360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/categories?post=360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/tags?post=360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}