Compare commits

...

4 Commits

Author SHA1 Message Date
a97d52bc59 update user agent
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 47s
2025-01-10 09:31:04 +05:00
80eb74c65c add jq to keep alive
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 1m20s
2025-01-10 08:24:12 +05:00
470df69c56 auto build
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 1m50s
2025-01-10 08:19:47 +05:00
c2ab2ea996 add the cookie server script to docker.... 2025-01-10 08:18:24 +05:00
4 changed files with 41 additions and 2 deletions

View File

@@ -5,4 +5,6 @@ RUN apt-get update && apt-get install -y curl jq && apt-get clean && rm -rf /var
WORKDIR /app
COPY getcookie.py .
CMD python getcookie.py

View File

@@ -1,6 +1,6 @@
FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y curl && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y curl jq && apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY keepalive.sh .

View File

@@ -0,0 +1,37 @@
name: Build and Push Docker Images
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
docker:
name: Build and Push Docker Images
runs-on: builder
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build Docker images
working-directory: .build/prod
run: docker compose build
- name: Login to Docker Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ${{ vars.DOCKER_REGISTRY_URL }}
username: ${{ vars.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Push Docker images
if: github.event_name != 'pull_request'
working-directory: .build/prod
run: docker compose push

View File

@@ -11,7 +11,7 @@ class MIBLogin:
def __init__(self):
self.base_url = "https://faisanet.mib.com.mv"
self.headers = {
"User-Agent": "Mozilla/5.0 (give-api) ismath-owes-me-real-api/give-real-api AppleWebKit/537.36 (KHTML, like Gecko) Safari/537.36",
"User-Agent": "Mozilla/5.0 (ismath-said-will) give-real-api/so-i-wont-have-to-do-this AppleWebKit/537.36 (KHTML, like Gecko) Safari/537.36",
"Accept": "*/*"
}
self.last_cookie = None