Skip to content

Commit 4c441a9

Browse files
authored
Merge pull request #11 from FossPrime/patch-1
Add instructions for k8s deployment
2 parents 2c0a9b5 + 5fd0f92 commit 4c441a9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,36 @@ function getAuthorizedUser(req: Request, header: string = 'Authorization') {
106106
}
107107
```
108108

109+
## Installation on Kubernetes
110+
111+
There is no official chart for this project, helm or otherwise. You can make your own, but keep in mind cors-proxy uses the Micro server, which will return a 403 error for any requests that do not have the user agent header.
112+
113+
_Example:_
114+
```yaml
115+
containers:
116+
- name: cors-proxy
117+
image: node:lts-alpine
118+
env:
119+
- name: ALLOW_ORIGIN
120+
value: https://mydomain.com
121+
command:
122+
- npx
123+
args:
124+
- '@isomorphic-git/cors-proxy'
125+
- start
126+
ports:
127+
- containerPort: 9999
128+
hostPort: 9999
129+
name: proxy
130+
protocol: TCP
131+
livenessProbe:
132+
tcpSocket:
133+
port: proxy
134+
readinessProbe:
135+
tcpSocket:
136+
port: proxy
137+
```
138+
109139
## License
110140
111141
This work is released under [The MIT License](https://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)