Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Mastodon
  3. Mastodon behind cloudflare

Mastodon behind cloudflare

Scheduled Pinned Locked Moved Mastodon
7 Posts 2 Posters 1.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG girish

    You can read more here - https://support.cloudflare.com/hc/en-us/articles/115000219871-Troubleshooting-redirect-loop-errors-

    S Offline
    S Offline
    stvslkt
    wrote on last edited by
    #1

    @girish so I got the site to work with your help, the only issue im currently having now is the mobile site doesnt work. When you go to my site it looks like css and javascript are turned off. my mastodon site is joingeeksocial.com

    1 Reply Last reply
    0
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      This looks like a CSP issue. It seems Cloudflare is injecting some analytics and mastodon's CSP disallows external js. Are you able to disable the analytics? Maybe Speed -> Browser insights -> Configurations but I am not sure (from https://community.cloudflare.com/t/how-to-disable-cloudflare-analytics-tracking/26307/4)

      1 Reply Last reply
      0
      • girishG girish moved this topic from Support on
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        I made a new topic @stvslkt since the issue is now Mastodon specific.

        S 2 Replies Last reply
        0
        • girishG girish

          I made a new topic @stvslkt since the issue is now Mastodon specific.

          S Offline
          S Offline
          stvslkt
          wrote on last edited by
          #4

          @girish yes I disabled analytics and unfortunately I still have the same problem, It did work for a bit, after I fixed the first issue, the mobile site worked well. I fell asleep and woke up to this problem. Would anything else help, maybe a picture of my dns setup or something from cloudron?

          1 Reply Last reply
          0
          • girishG girish

            I made a new topic @stvslkt since the issue is now Mastodon specific.

            S Offline
            S Offline
            stvslkt
            wrote on last edited by
            #5

            @girish I went back to linode because of the issue, I really want to add cloudflare to my mastodon but idk how if this issue keeps persisting. I know cloudflare and cloudrun both offer SSL certs, is there maybe a form of clash when going on?

            girishG 1 Reply Last reply
            0
            • S stvslkt

              @girish I went back to linode because of the issue, I really want to add cloudflare to my mastodon but idk how if this issue keeps persisting. I know cloudflare and cloudrun both offer SSL certs, is there maybe a form of clash when going on?

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              @stvslkt From what I saw then, cloudflare was injecting some browser analytics which was blocked by Mastodon's CSP.

              I tested a test instance of Mastodon with Cloudflare and for me it loaded just fine. But my installation did not have that browser analytics injected. Maybe you can reach out to cloudflare and ask them why it's getting injected. You can see it in the browser console that the js script is blocked.

              S 1 Reply Last reply
              0
              • girishG girish

                @stvslkt From what I saw then, cloudflare was injecting some browser analytics which was blocked by Mastodon's CSP.

                I tested a test instance of Mastodon with Cloudflare and for me it loaded just fine. But my installation did not have that browser analytics injected. Maybe you can reach out to cloudflare and ask them why it's getting injected. You can see it in the browser console that the js script is blocked.

                S Offline
                S Offline
                stvslkt
                wrote on last edited by
                #7

                @girish im going to try it again today to see if itll work

                1 Reply Last reply
                0
                • girishG girish referenced this topic on
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search