-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from quaternionmedia/pkce-auth
🔐 PKCE Auth
- Loading branch information
Showing
42 changed files
with
5,600 additions
and
346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: 🏭 Build and Deploy | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build-and-deploy: | ||
concurrency: ci-${{ github.ref }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🛎️ Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🛠️ Install and Build | ||
run: | | ||
npm ci | ||
# Fixes duplicate "main" definition in package.json | ||
sed -i '17d' node_modules/javascript-astar/package.json | ||
npm run ci | ||
- name: 🚀 Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
stockfish_* | ||
config.py | ||
db.json | ||
*.pem | ||
node_modules | ||
.parcel-cache | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
from fastapi import FastAPI | ||
from starlette.staticfiles import StaticFiles | ||
from oauth import app as oauth_app | ||
|
||
app = FastAPI() | ||
|
||
app.mount('/oauth', oauth_app) | ||
app.mount('/static', StaticFiles(directory='web/static', html=True), name='static') | ||
app.mount('/', StaticFiles(directory='web/dist', html=True), name='dist') | ||
app.mount('/static', StaticFiles(directory='static', html=True), name='static') | ||
app.mount('/', StaticFiles(directory='dist', html=True), name='dist') | ||
|
||
|
||
if __name__ == '__main__': | ||
from uvicorn import run | ||
|
||
run(app, host='0.0.0.0', port=5000) |
Oops, something went wrong.