Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoralcz committed Oct 18, 2023
2 parents a734425 + 2d39049 commit 22c0571
Show file tree
Hide file tree
Showing 6 changed files with 4,740 additions and 1,124 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ jobs:
run: echo "##[set-output name=repo;]$(echo ${GITHUB_REPOSITORY##*/})"
id: extract_repo

- name: Build Host URL
shell: bash
run: echo "##[set-output name=url;]$([ "${GITHUB_REF##*/}" == "master" ] && echo ${{ secrets.HOST_URL }} || echo "beta-${{ secrets.HOST_URL }}")"
id: extract_host_url

- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# trivia REST API
5200+ multiple choice trivia questions in a REST API. You can use the live instance at `beta-trivia.bongo.best`
5200+ multiple choice trivia questions in a REST API. You can use the live instance at `beta-trivia.bongobot.io`

---
### How to Use:
There are a few ways to get your trivia question
1) By id 1-5200
1. By id 1-5200

**Example**
```$xslt
Expand Down Expand Up @@ -34,8 +34,8 @@ cache-control: no-cache
2) By random and with filters
- search
- category `(Entertainment | Sports | Science | Animals | General Knowledge | Mythology | Politics | Geography | History)`
- type `(easy | medium | hard)`
- difficulty `(boolean | multiple)`
- difficulty `(easy | medium | hard)`
- type `(boolean | multiple)`
- limit `(1-10)`

**Example**
Expand Down
21 changes: 19 additions & 2 deletions k8s/ingress-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,27 @@ spec:
http:
paths:
- path: /
pathType: Prefix
backend:
serviceName: ${SERVICE_NAME}
servicePort: ${PORT}
service:
name: ${SERVICE_NAME}
port:
number: 8443

- host: ${HOST_URL_IO}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ${SERVICE_NAME}
port:
number: 8443
tls:
- hosts:
- ${HOST_URL}
secretName: ssl-bongo
- hosts:
- ${HOST_URL_IO}
secretName: ssl-bongobot
21 changes: 19 additions & 2 deletions k8s/ingress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,27 @@ spec:
http:
paths:
- path: /
pathType: Prefix
backend:
serviceName: ${SERVICE_NAME}
servicePort: ${PORT}
service:
name: ${SERVICE_NAME}
port:
number: 8443

- host: ${HOST_URL_IO}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ${SERVICE_NAME}
port:
number: 8443
tls:
- hosts:
- ${HOST_URL}
secretName: ssl-bongo
- hosts:
- ${HOST_URL_IO}
secretName: ssl-bongobot
Loading

0 comments on commit 22c0571

Please sign in to comment.