[GH-ISSUE #173] Invalid Origin #87

Closed
opened 2026-02-27 15:55:02 +03:00 by kerem · 2 comments
Owner

Originally created by @ricardosaurio on GitHub (Feb 11, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/173

Under CasaOS, runing gitea-mirror as a docker image, launching it will take me to the set up screen where it will ask for an email, and password (twice).

No matter what i write into those fields, i always get an "invalid origin" pop up.

I have never used gitea mirror, this is just the first time using it.

If it might be of help, CasaOS doesnt allow to install gitea as a single "app", so i cant edit any YAML file or modify the settings.

Image
Originally created by @ricardosaurio on GitHub (Feb 11, 2026). Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/173 Under CasaOS, runing gitea-mirror as a docker image, launching it will take me to the set up screen where it will ask for an email, and password (twice). No matter what i write into those fields, i always get an "invalid origin" pop up. I have never used gitea mirror, this is just the first time using it. If it might be of help, CasaOS doesnt allow to install gitea as a single "app", so i cant edit any YAML file or modify the settings. <img width="985" height="592" alt="Image" src="https://github.com/user-attachments/assets/2e83000b-71b9-43ce-82b9-4149d1869033" />
kerem 2026-02-27 15:55:02 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@williamwebb commented on GitHub (Feb 18, 2026):

You will need to add your domain as a trusted origin. These can be set via environmental variables in your docker container, they are outlined here. https://github.com/RayLabsHQ/gitea-mirror/blob/main/docs/ENVIRONMENT_VARIABLES.md. Specifically look at PUBLIC_BETTER_AUTH_URL and BETTER_AUTH_TRUSTED_ORIGINS.

<!-- gh-comment-id:3920829978 --> @williamwebb commented on GitHub (Feb 18, 2026): You will need to add your domain as a trusted origin. These can be set via environmental variables in your docker container, they are outlined here. https://github.com/RayLabsHQ/gitea-mirror/blob/main/docs/ENVIRONMENT_VARIABLES.md. Specifically look at PUBLIC_BETTER_AUTH_URL and BETTER_AUTH_TRUSTED_ORIGINS.
Author
Owner

@ricardosaurio commented on GitHub (Feb 18, 2026):

Thanks, i will try and come back at you,

<!-- gh-comment-id:3920976720 --> @ricardosaurio commented on GitHub (Feb 18, 2026): Thanks, i will try and come back at you,
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/gitea-mirror#87
No description provided.