diff --git a/.env.example b/.env.example index 785d327..8c544d1 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ PORT="3000" -# Gitea base url (like https://git.pihkaal.xyz) +# Gitea base url (like https://git.pihkaal.me) GITEA_URL="" # Gitea main username (for me it's pihkaal) GITEA_USERNAME="" diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index d8ec475..8d9d2c9 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -19,11 +19,11 @@ jobs: - name: Log in to Gitea Container Registry uses: docker/login-action@v3 with: - registry: git.pihkaal.xyz + registry: git.pihkaal.me username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} - name: Build and push Docker image run: | - docker build -t git.pihkaal.xyz/pihkaal/gitea-auto-urls:latest . - docker push git.pihkaal.xyz/pihkaal/gitea-auto-urls:latest + docker build -t git.pihkaal.me/pihkaal/gitea-auto-urls:latest . + docker push git.pihkaal.me/pihkaal/gitea-auto-urls:latest diff --git a/README.md b/README.md index 41e45b3..279a784 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Automatically generates Traefik middleware to shorten Gitea repository URLs. ## Purpose -Removes the username from single-user Gitea instances: `https://git.pihkaal.xyz/pihkaal/repo-name` → `https://git.pihkaal.xyz/repo-name`. +Removes the username from single-user Gitea instances: `https://git.pihkaal.me/pihkaal/repo-name` → `https://git.pihkaal.me/repo-name`. Note that this will work only if you have a single user on Gitea, this is not meant to be used with multiple users. This projects is done based on my needs. ## How it works @@ -41,7 +41,7 @@ You can add this to your gitea stack: services: # ... auto-urls: - image: git.pihkaal.xyz/pihkaal/gitea-auto-urls:latest + image: git.pihkaal.me/pihkaal/gitea-auto-urls:latest container_name: gitea-auto-urls restart: always environment: