Skip to content

Commit

Permalink
chore: raph suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Dec 22, 2023
1 parent 6980bea commit 2a70ef5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
CALLBACK_URL: /login-callback
HOST: http://localhost:3000
LOGIN_HINT: ""
MCP_CLIENT_ID: client_id
MCP_CLIENT_SECRET: client_secret
MCP_ID_TOKEN_SIGNED_RESPONSE_ALG: RS256
MCP_PROVIDER: https://app-test.moncomptepro.beta.gouv.fr/
MCP_SCOPES: "openid email profile organization"
MCP_USERINFO_SIGNED_RESPONSE_ALG: ""
PORT: 3000
SITE_TITLE: "Bonjour monde !"
STYLESHEET_URL: https://unpkg.com/bamboo.css
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This tool is full configured using environment variables.
Pull the image:

```
docker pull rdubigny/moncomptepro-test-client
docker pull ghcr.io/betagouv/moncomptepro-test-client
```

Run the container:
Expand All @@ -24,7 +24,7 @@ Run the container:
docker run -d --rm \
-p 3000:3000 \
-e PORT=3000 \
rdubigny/moncomptepro-test-client
ghcr.io/betagouv/moncomptepro-test-client
```

## Run it with Docker Compose
Expand All @@ -36,7 +36,7 @@ version: "3.5"

services:
oidc-test-client:
image: rdubigny/moncomptepro-test-client
image: ghcr.io/betagouv/moncomptepro-test-client
ports:
- 3000:3000
environment:
Expand Down
3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const env = z
MCP_SCOPES: z.string().default("openid email profile organization"),
MCP_USERINFO_SIGNED_RESPONSE_ALG: z.string().optional(),
PORT: z.coerce.number().default(3000),
SITE_TITLE: z.string().default("Bonjour monde !"),
SITE_TITLE: z.string().default("Bonjour monde !"),
STYLESHEET_URL: z.string().default("https://unpkg.com/bamboo.css"),
})
.parse(process_env);
Expand All @@ -55,6 +55,7 @@ interface Session_Context extends Env {
};
};
}

const hono = new Hono<Session_Context>();

//
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"compilerOptions": {
"verbatimModuleSyntax": true
},
"files": ["./index.ts", "./views/index.ts"]
"files": ["./index.ts"]
}

0 comments on commit 2a70ef5

Please sign in to comment.