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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
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

Cloudron Forum

Apps | Demo | Docs | Install

Ackee - How to: CORS headers, reverse proxy?

Scheduled Pinned Locked Moved Solved Ackee
6 Posts 4 Posters 544 Views
    • 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
  • murgeroM Offline
    murgeroM Offline
    murgero App Dev
    replied to andxclfor 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. ~
    Matrix: @murgero:urgero.org

    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

    Life of sky tech

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to robi 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
  • robiR Offline
    robiR Offline
    robi
    replied to girish 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.

    Life of sky 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

  • Login

  • Don't have an account? Register

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

  • Don't have an account? Register

  • Login or register to search.