Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
4989d9e
update
hhftechnology Apr 16, 2025
ec38680
Update main.yml
hhftechnology Apr 16, 2025
7fa6e2f
update
hhftechnology Apr 16, 2025
fcbbcc4
Update App.js
hhftechnology Apr 16, 2025
c7e3742
Update App.js
hhftechnology Apr 16, 2025
339ca1c
Update App.js
hhftechnology Apr 16, 2025
d209639
Update App.js
hhftechnology Apr 16, 2025
0a973ae
Update App.js
hhftechnology Apr 16, 2025
da8b840
Update App.js
hhftechnology Apr 16, 2025
6328866
Update App.js
hhftechnology Apr 16, 2025
2180e8d
Update routes.go
hhftechnology Apr 16, 2025
48ec8cb
Update handlers.go
hhftechnology Apr 16, 2025
42aa680
Update main.yml
hhftechnology Apr 16, 2025
bf28c4e
update
hhftechnology Apr 16, 2025
040ac99
Update App.js
hhftechnology Apr 16, 2025
e812252
Update App.js
hhftechnology Apr 16, 2025
6a07080
update
hhftechnology Apr 17, 2025
a55b2cb
Update App.js
hhftechnology Apr 17, 2025
5a14bcb
Update App.js
hhftechnology Apr 17, 2025
f9c6756
Update App.js
hhftechnology Apr 17, 2025
762b53b
update
hhftechnology Apr 17, 2025
cbbf1de
update
hhftechnology Apr 17, 2025
8c07fc8
update
hhftechnology Apr 17, 2025
0484384
sync
hhftechnology Apr 17, 2025
4ebe03b
update
hhftechnology Apr 17, 2025
6ef6f37
Update App.js
hhftechnology Apr 17, 2025
5c3bd12
update
hhftechnology Apr 17, 2025
24168fc
update
hhftechnology Apr 17, 2025
089049f
Update resource_watcher.go
hhftechnology Apr 17, 2025
6e0d768
update
hhftechnology Apr 18, 2025
1f26c91
update
hhftechnology Apr 18, 2025
b5efcd9
Update config_generator.go
hhftechnology Apr 18, 2025
968abeb
update
hhftechnology Apr 18, 2025
973477c
update
hhftechnology Apr 18, 2025
a328225
Update config_generator.go
hhftechnology Apr 18, 2025
aee909c
Update App.js
hhftechnology Apr 18, 2025
c18a80a
Update templates.yaml
hhftechnology Apr 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 4 additions & 43 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ name: Build and Push Docker Image
on:
push:
branches:
- main
- master
- dev
- sni-support
paths:
- 'Dockerfile'
- 'go.mod'
Expand All @@ -19,9 +17,6 @@ on:
- 'models/**'
- 'services/**'
- 'ui/**'

tags:
- 'v*'
workflow_dispatch:

env:
Expand Down Expand Up @@ -53,56 +48,22 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# Get current date for image tags
- name: Get current date
id: date
run: echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT

# Prepare tags based on branch and version
- name: Prepare Docker tags
id: docker_tags
run: |
TAGS=""

# Add branch-specific tags
if [[ "${{ github.ref_name }}" == "main" || "${{ github.ref_name }}" == "master" ]]; then
# For main/master branch, add latest tag
TAGS="$TAGS ${{ env.DOCKERHUB_IMAGE_NAME }}:latest"
elif [[ "${{ github.ref_name }}" == "dev" ]]; then
# For dev branch
TAGS="$TAGS ${{ env.DOCKERHUB_IMAGE_NAME }}:dev"
elif [[ "${{ github.ref_type }}" == "branch" ]]; then
# For other branches
TAGS="$TAGS ${{ env.DOCKERHUB_IMAGE_NAME }}:${{ github.ref_name }}"
fi

# Add sha tag for all branches
if [[ "${{ github.ref_type }}" == "branch" ]]; then
TAGS="$TAGS,${{ env.DOCKERHUB_IMAGE_NAME }}:sha-${GITHUB_SHA::7}"
fi

# Add version tag for tagged releases
if [[ "${{ github.ref_type }}" == "tag" && "${{ github.ref }}" == refs/tags/v* ]]; then
VERSION="${{ github.ref_name }}"

# Add full version tag
TAGS="$TAGS,${{ env.DOCKERHUB_IMAGE_NAME }}:$VERSION"
if [[ "${{ github.ref_type }}" == "branch" && "${{ github.ref_name }}" == "sni-support" ]]; then
TAGS="${{ env.DOCKERHUB_IMAGE_NAME }}:sni-support"
fi

# Add date tag for all builds
TAGS="$TAGS,${{ env.DOCKERHUB_IMAGE_NAME }}:${{ steps.date.outputs.date }}"

# Remove leading space or comma if present
TAGS=$(echo "$TAGS" | sed 's/^[ ,]*//')

echo "tags=$TAGS" >> $GITHUB_OUTPUT
echo "Docker tags: $TAGS"

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
push: ${{ steps.docker_tags.outputs.tags != '' }} # IMPORTANT: Only push if tags were generated
platforms: linux/amd64,linux/arm64
tags: ${{ steps.docker_tags.outputs.tags }}
cache-from: type=gha
Expand Down
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
# Pangolin Middleware Manager
<div align="center">
<h1 align="center"><a href="https://forum.hhf.technology/t/enhancing-your-pangolin-deployment-with-middleware-manager">Pangolin Middleware Manager</a></h1>

</div>

<h3 align="center">Middleware/Router Manager for your Pangolin Stack</h3>
<div align="center">


</div>

<div align="center">
<h5>
<img src="screenshots/dashboard.jpeg" alt="Preview"/>
<img src="screenshots/middleware-list.jpeg" alt="Preview"/>
<img src="screenshots/middlewares.jpeg" alt="Preview"/>
<img src="screenshots/resources.jpeg" alt="Preview"/>
</h5>
</div>

A specialized microservice that enhances your Pangolin deployment by enabling custom Traefik middleware attachment to resources without modifying Pangolin itself. This provides crucial functionality for implementing authentication, security headers, rate limiting, and other middleware-based protections.

Expand Down
Loading