Skip to content

Nginx OIDC auth0 devportal test --- to be discarded #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.crt
*.key
*.jwt
refresh_tokens.json
oidc*.json
oidc_credentials.conf
.DS_Store
docker/build-context/data
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.PHONY: start watch down clean clean-cache unit-test functional-test test

start:
docker-compose up -d

ps:
docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Ports}}\t{{.Names}}"

watch:
watch 'docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Ports}}\t{{.Names}}"'

down:
docker-compose down

stop:
docker-compose down

clean:
docker kill $$(docker ps -q) 2> /dev/null || true
docker system prune -a
docker volume rm $(docker volume ls -qf dangling=true)
249 changes: 20 additions & 229 deletions README.md

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.4'

services:

nginx_plus_ubuntu18.04:
container_name: nginx-oidc-v1-auth0
build:
context: ./
dockerfile: ./docker/docker-files/nginxplus-ubuntu18.04/Dockerfile
image: nginx_oidc_v1_auth0_ubuntu18.04
ports:
- 8010:8010
- 443:443
volumes:
- type: bind
source: ./
target: /etc/nginx/conf.d/
- type: bind
source: ./docker/build-context/nginx/test/
target: /etc/nginx/test/
- type: bind
source: ./docker/build-context/content
target: /usr/share/nginx/html/

networks:
mynetwork:
name: mynetwork
attachable: true
21 changes: 21 additions & 0 deletions docker/build-context/content/50x.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title>Error</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>An error occurred.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
<p>If you are the system administrator of this resource then you should check
the error log for details.</p>
<p><em>Faithfully yours, nginx.</em></p>
</body>
</html>
Loading