Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deployment/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY package-lock.json /opt/app/package-lock.json

# INIT configs
COPY deployment/jitar.prod.json /opt/app/jitar.json
COPY deployment/services/demonstration/social.json /opt/app/service.json
COPY deployment/services/demonstration/containerd.json /opt/app/service.json

# Init dist
RUN mkdir /opt/app/dist
Expand Down
49 changes: 49 additions & 0 deletions deployment/services/demonstration/containerd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"url": "http://127.0.0.1:3000",
"http": {
"bodyLimit": 512000,
"proxied": true
},
"setUp": [
"./common/integrations/authentication/setUp",
"./common/integrations/database/setUp",
"./common/integrations/files/setUp",
"./common/integrations/events/setUp"
],
"tearDown": [
"./common/integrations/authentication/tearDown",
"./common/integrations/database/tearDown",
"./common/integrations/files/tearDown",
"./common/integrations/events/tearDown"
],
"healthChecks": [
"./common/integrations/database/healthCheck",
"./common/integrations/files/healthCheck",
"./common/integrations/events/healthCheck"
],
"middleware": [
"./common/integrations/authentication/originMiddleware",
"./common/integrations/authentication/authenticationMiddleware",
"./common/integrations/tenancy/tenantMiddleware"
],
"standalone":
{
"segments": [
"common.bff",
"common.errors",
"common.reads",
"moderation.bff",
"moderation.errors",
"moderation.writes",
"social.bff",
"social.errors",
"social.notification",
"social.reads",
"social.writes"
],

"fallback": "index.html",
"assetRoot": "./social/app",
"assets": ["index.html", "appicon32.png", "assets/**/*", "registerSW.js", "sw.js", "workbox-*.js", "manifest.webmanifest"]
}
}
4 changes: 4 additions & 0 deletions deployment/services/demonstration/social.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"url": "http://127.0.0.1:3000",
"http": {
"bodyLimit": 512000,
"proxied": false
},
"setUp": [
"./common/integrations/authentication/setUp",
"./common/integrations/database/setUp",
Expand Down
4 changes: 4 additions & 0 deletions deployment/services/development/worker.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"url": "http://127.0.0.1:3000",
"http": {
"bodyLimit": 512000,
"proxied": false
},
"setUp": [
"./common/integrations/authentication/setUp",
"./common/integrations/database/setUp",
Expand Down
3 changes: 3 additions & 0 deletions deployment/services/production/bff.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"url": "http://127.0.0.1:4000",
"http": {
"bodyLimit": 512000
},
"setUp": [
"./common/integrations/authentication/setUp",
"./common/integrations/events/setUp"
Expand Down
3 changes: 3 additions & 0 deletions deployment/services/production/gateway.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"url": "http://127.0.0.1:2000",
"http": {
"bodyLimit": 512000
},
"gateway":
{
"trustKey": "${JITAR_TRUST_KEY}"
Expand Down
3 changes: 3 additions & 0 deletions deployment/services/production/notification.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"url": "http://127.0.0.1:4001",
"http": {
"bodyLimit": 512000
},
"setUp": [
"./common/integrations/database/setUp",
"./common/integrations/events/setUp"
Expand Down
4 changes: 4 additions & 0 deletions deployment/services/production/proxy.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"url": "http://127.0.0.1:3000",
"http": {
"bodyLimit": 512000,
"proxied": false
},
"proxy":
{
"repository": "http://127.0.0.1:1000",
Expand Down
3 changes: 3 additions & 0 deletions deployment/services/production/reads.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"url": "http://127.0.0.1:4002",
"http": {
"bodyLimit": 512000
},
"setUp": [
"./common/integrations/database/setUp",
"./common/integrations/files/setUp"
Expand Down
3 changes: 3 additions & 0 deletions deployment/services/production/reads2.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"url": "http://127.0.0.1:4003",
"http": {
"bodyLimit": 512000
},
"setUp": [
"./common/integrations/database/setUp",
"./common/integrations/files/setUp"
Expand Down
3 changes: 3 additions & 0 deletions deployment/services/production/writes.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"url": "http://127.0.0.1:4004",
"http": {
"bodyLimit": 512000
},
"setUp": [
"./common/integrations/database/setUp",
"./common/integrations/files/setUp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@

import { OriginMiddleware } from '@jitar-plugins/http';

const options = {
sameSite: process.env.ORIGIN_COOKIE_SAME_SITE ?? 'Strict',
secure: process.env.ORIGIN_COOKIE_SECURE === 'true'
};

export default new OriginMiddleware(options);
export default new OriginMiddleware();
14 changes: 7 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ volumes:
services:

mongo:
image: mongo:8.0.12
image: mongo:8.3.17-noble
container_name: mongo
restart: always
volumes:
Expand Down Expand Up @@ -37,7 +37,7 @@ services:
- mongo

seaweedfs-master:
image: chrislusf/seaweedfs:4.07
image: chrislusf/seaweedfs:4.55
container_name: seaweedfs-master
ports:
- "9333:9333"
Expand All @@ -47,7 +47,7 @@ services:
command: "master -ip=seaweedfs-master -ip.bind=0.0.0.0 -port=9333 -port.grpc=19333 -mdir=/data"

seaweedfs-volume:
image: chrislusf/seaweedfs:4.07
image: chrislusf/seaweedfs:4.55
container_name: seaweedfs-volume
ports:
- "9222:8080"
Expand All @@ -59,7 +59,7 @@ services:
- seaweedfs-master

seaweedfs-filer:
image: chrislusf/seaweedfs:4.07
image: chrislusf/seaweedfs:4.55
container_name: seaweedfs-filer
ports:
- "9111:8888"
Expand All @@ -72,7 +72,7 @@ services:
- seaweedfs-volume

seaweedfs-s3:
image: chrislusf/seaweedfs:4.07
image: chrislusf/seaweedfs:4.55
container_name: seaweedfs-s3
ports:
- "${SEAWEEDFS_PORT_NUMBER:-9000}:8333"
Expand All @@ -84,7 +84,7 @@ services:
- seaweedfs-filer

keycloak:
image: quay.io/keycloak/keycloak:26.5.2
image: quay.io/keycloak/keycloak:26.8.2
container_name: keycloak
restart: always
volumes:
Expand All @@ -107,7 +107,7 @@ services:
command: start-dev --import-realm

kafka:
image: apache/kafka:4.3.1
image: apache/kafka:4.4.0
container_name: kafka
ports:
- "${KAFKA_PORT_NUMBER:-9092}:9092"
Expand Down
4 changes: 0 additions & 4 deletions example.env
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ NOTIFICATION_DRIVER="memory"
# WEBPUSH_VAPID_PUBLIC_KEY=""
# WEBPUSH_VAPID_PRIVATE_KEY=""

# ORIGIN MIDDLEWARE
ORIGIN_COOKIE_SAME_SITE='Strict'
ORIGIN_COOKIE_SECURE="false #localhost is not a secure context in Safari"

# ########################################################################
# DOCKER
# ########################################################################
Expand Down
Loading
Loading