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. Ackee
  3. Ackee - How to: CORS headers, reverse proxy?

Ackee - How to: CORS headers, reverse proxy?

Scheduled Pinned Locked Moved Solved Ackee
6 Posts 4 Posters 1.7k Views 4 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.
  • A Offline
    A Offline
    andxclfor
    wrote on last edited by
    #1

    I am out of my depth here. Would someone be able to help me figure this out?

    As per this:
    https://docs.ackee.electerious.com/#/docs/CORS headers
    and:
    https://docs.ackee.electerious.com/#/docs/SSL and HTTPS#recommended-configuration

    how can I set this up so that Ackee is actually tracking?

    Thank you

    murgeroM 1 Reply Last reply
    0
    • A andxclfor

      I am out of my depth here. Would someone be able to help me figure this out?

      As per this:
      https://docs.ackee.electerious.com/#/docs/CORS headers
      and:
      https://docs.ackee.electerious.com/#/docs/SSL and HTTPS#recommended-configuration

      how can I set this up so that Ackee is actually tracking?

      Thank you

      murgeroM Offline
      murgeroM Offline
      murgero
      App Dev
      wrote on last edited by
      #2

      @andxclfor I'd follow this: https://docs.cloudron.io/apps/ackee/#adding-a-domain

      For CORS you edit the env file and put your domain in the variable "ACKEE_ALLOW_ORIGIN". Then in ackee you add your domain, then it will give you JS to put in the website html for tracking.

      --
      https://urgero.org
      ~ Professional Nerd. Freelance Programmer. ~

      1 Reply Last reply
      1
      • robiR Offline
        robiR Offline
        robi
        wrote on last edited by robi
        #3

        I'm having an issue with this as well, no tracking is actually happening, mainly because of issues with documentation.

        The examples on the github site are flat out wrong, and the Cloudron docs need improvement too.

        @staff Here's a short list:

        • the example domain is not of your site, but of your ackee install
        • the example ackee-tracker.min.js does not exist
        • the example path to the tracker does not exist
        • CORS preventing self-hosted tracking
        • CORS docs not specifying which domain(s) to add (tracker or tracked)

        After adding CORS domains to Ackee env file and restarting, FF still won't connect to the ackee API and blocks because of CORS

        Conscious tech

        girishG 1 Reply Last reply
        0
        • robiR robi

          I'm having an issue with this as well, no tracking is actually happening, mainly because of issues with documentation.

          The examples on the github site are flat out wrong, and the Cloudron docs need improvement too.

          @staff Here's a short list:

          • the example domain is not of your site, but of your ackee install
          • the example ackee-tracker.min.js does not exist
          • the example path to the tracker does not exist
          • CORS preventing self-hosted tracking
          • CORS docs not specifying which domain(s) to add (tracker or tracked)

          After adding CORS domains to Ackee env file and restarting, FF still won't connect to the ackee API and blocks because of CORS

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

          @robi I put some screenshots and improved it - https://docs.cloudron.io/apps/ackee/#adding-a-domain . Better?

          robiR 1 Reply Last reply
          0
          • girishG girish

            @robi I put some screenshots and improved it - https://docs.cloudron.io/apps/ackee/#adding-a-domain . Better?

            robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #5

            @girish Yes, it is much better! Thank you.

            This also helped me find my issue.

            Next question is can a CORS wildcard be added for subdomains.

            Like:

            https://*.example.com
            

            If not, we'll need a feature request to add to Ackee for a checkbox to add new monitored domains to the env file origins list automatically from the UI.

            Conscious tech

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

              Not sure, https://github.com/electerious/Ackee/blob/master/docs/Options.md#cors-headers says you can set ACKEE_ALLOW_ORIGIN="*" which is of course insecure.

              1 Reply Last reply
              0
              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