sepolia deployment

This commit is contained in:
tim
2025-10-23 13:53:48 -04:00
parent 380c77b37e
commit a1e73df30a
13 changed files with 524 additions and 55 deletions

10
deploy/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM nginx:stable-alpine
RUN apk update && apk upgrade
WORKDIR /liquidity.party/web
COPY out ./out
RUN sed -i '1idaemon off;' /etc/nginx/nginx.conf
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
CMD ["nginx"]

View File

@@ -0,0 +1,103 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: liquidity-party
labels:
app: liquidity-party
spec:
replicas: 1
selector:
matchLabels:
app: liquidity-party
template:
metadata:
labels:
app: liquidity-party
annotations:
prometheus.io/scrape: "false"
spec:
containers:
- name: liquidity-party
image: dexorder/liquidity-party
ports:
- name: www
containerPort: 80
protocol: TCP
resources:
requests:
cpu: 10m
memory: 100M
---
apiVersion: v1
kind: Service
metadata:
name: liquidity-party
labels:
app: liquidity-party
spec:
selector:
app: liquidity-party
ports:
- name: liquidity-party
port: 80
targetPort: 80
protocol: TCP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: liquidity-party
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/ssl-redirect: "true" # Redirects HTTP to HTTPS
spec:
ingressClassName: nginx
tls:
- secretName: liquidity-party-tls
hosts:
- liquidity.party
rules:
- host: liquidity.party
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: liquidity-party
port:
number: 80
# www redirects to apex domain
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: www-liquidity-party
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/ssl-redirect: "true" # Redirects HTTP to HTTPS
nginx.ingress.kubernetes.io/permanent-redirect: "https://liquidity.party/"
spec:
ingressClassName: nginx
tls:
- secretName: www-liquidity-party-tls
hosts:
- www.liquidity.party
rules:
- host: www.liquidity.party
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: liquidity-party
port:
number: 80

23
deploy/nginx.conf Normal file
View File

@@ -0,0 +1,23 @@
server {
listen 80 default_server;
root /liquidity.party/web/out;
gzip on;
gzip_min_length 1000;
gzip_types text/plain text/xml application/javascript text/css;
location / {
try_files $uri $uri.html $uri/ /index.html;
}
# This is necessary when `trailingSlash: false`.
# You can omit this when `trailingSlash: true`.
location /blog/ {
rewrite ^/blog/(.*)$ /blog/$1.html break;
}
error_page 404 /404.html;
location = /404.html {
internal;
}
}