Skip to content

Commit

Permalink
Merge pull request #17 from FranciZhong/db-indexing
Browse files Browse the repository at this point in the history
feat: ingress
  • Loading branch information
FranciZhong authored Oct 12, 2024
2 parents 4d9f591 + d698731 commit cee0003
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ next-env.d.ts
# env
.env
.env.local
.env.development
.env.production

# migration
# /prisma/migrations
# ssl/tsl
*.csr
*.key
*.crt

# test
*/test.*
Expand Down
2 changes: 1 addition & 1 deletion k8s/chatemo-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Service
metadata:
name: chatemo
spec:
type: LoadBalancer
type: NodePort
selector:
app: chatemo
ports:
Expand Down
18 changes: 18 additions & 0 deletions k8s/ingress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: chatemo-ingress
spec:
tls:
- secretName: chatemo-ingress
rules:
- host: chatemo.chat
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: chatemo
port:
number: 80
2 changes: 1 addition & 1 deletion src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const DEFAULT_MODEL = {
};

export const DEFAULT_TRANSFORM_DELAY = 300;
export const SOCKET_HOST = 'http://www.chatemo.chat';
export const SOCKET_HOST = 'https://www.chatemo.chat';
export const GITHUB_LINK = 'https://github.com/FranciZhong/chatemo';
export const MAX_IMAGE_FILE_SIZE = 5 * 1024 * 1024;

Expand Down

0 comments on commit cee0003

Please sign in to comment.