Skip to content

Commit

Permalink
temporarily disable cors
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Nov 28, 2023
1 parent f718485 commit ef5bdd1
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
51 changes: 51 additions & 0 deletions proxy/kube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: taxonium-proxy-deployment
spec:
replicas: 1 # Number of replicas
selector:
matchLabels:
app: taxonium-proxy
template:
metadata:
labels:
app: taxonium-proxy
spec:
containers:
- name: taxonium-proxy
image: theosanderson/taxonium_proxy:master
ports:
- containerPort: 3000

---
apiVersion: v1
kind: Service
metadata:
name: taxonium-proxy-service
spec:
selector:
app: taxonium-proxy
ports:
- protocol: TCP
port: 80
targetPort: 3000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: taxonium-proxy-ingress
annotations:
kubernetes.io/ingress.class: "nginx" # assuming you are using nginx ingress controller
spec:
rules:
- host: proxy2.taxonium.org
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: taxonium-proxy-service
port:
number: 80
2 changes: 1 addition & 1 deletion proxy/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const corsOptions = {
};

// Apply CORS
app.use(cors(corsOptions));
//app.use(cors(corsOptions));

// Rate limiting middleware
const limiter = rateLimit({
Expand Down

0 comments on commit ef5bdd1

Please sign in to comment.