Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

1008 B
Raw Blame
module.exports = {
  apps: [
    {
      name: "alexandrie-backend",
      script: "./backend",
      env: {
        PORT: 8201,
        FRONTEND_URL: "https://alexandrie-hub.fr",
        COOKIE_DOMAIN: "alexandrie-hub.fr",
        ADMIN_ACCOUNTS: "152981937240150016",

        MINIO_ENDPOINT: "cdn.alexandrie-hub.fr",
        MINIO_PUBLIC_URL: "https://cdn.alexandrie-hub.fr",
        MINIO_BUCKET: "alexandrie",
        MINIO_SECURE: "true",

        DATABASE_HOST: "localhost",
        DATABASE_PORT: 3306,
        DATABASE_NAME: "alexandrie",

        CPWD: "./backend/",
        GIN_MODE: "release",
      },
    },
    {
      name: "alexandrie-frontend",
      cwd: "./frontend",
      script: "bun .output/server/index.mjs",
      env: {
        NODE_ENV: "production",
        PORT: 8200,
      },
    },
    {
      name: "alexandrie-docs",
      cwd: "./docs",
      script: "bun .output/server/index.mjs",
      env: {
        NODE_ENV: "production",
        PORT: 8202,
      },
    },
  ],
};