Skip to content

Commit 81f39de

Browse files
committed
Init
0 parents  commit 81f39de

File tree

208 files changed

+92534
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+92534
-0
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.git
2+
*.pyc
3+
.env
4+
venv
5+
node_modules
6+
npm-debug.log
7+
Makefile
8+
apps/app/.next/cache

.env

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Database Configuration
2+
POSTGRES_DB=${POSTGRES_DB:-aiplan-db} # Name of the PostgreSQL database; defaults to 'aiplan-db' if not specified
3+
POSTGRES_USER=${POSTGRES_USER:-aiplan} # Username for PostgreSQL access; defaults to 'aiplan'
4+
POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-aiplan} # Password for PostgreSQL user; defaults to 'aiplan'
5+
POSTGRES_HOST=${POSTGRES_HOST:-db} # Hostname or IP address of the PostgreSQL server; defaults to 'db' (Docker container named 'db')
6+
DATABASE_URL=${DATABASE_URL:-postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST:5432/$POSTGRES_DB?sslmode=disable&application_name=aiplan} # Full connection URL for the database, constructed using the above variables
7+
8+
# Email Configuration
9+
EMAIL_HOST=${EMAIL_HOST:-localhost} # Hostname of the email SMTP server; defaults to 'localhost'
10+
EMAIL_PORT=${EMAIL_PORT:-1025} # Port number for the email SMTP server; defaults to 1025
11+
EMAIL_FROM=${EMAIL_FROM:-aiplan@aisa.ru} # Default sender email address; defaults to 'aiplan@aisa.ru'
12+
EMAIL_USE_TLS=${EMAIL_USE_TLS:-false} # Whether to use TLS for SMTP connections; defaults to false
13+
14+
# AWS and MinIO Configuration
15+
AWS_REGION=${AWS_REGION:-""} # AWS region, left empty by default
16+
AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-access-key} # Default AWS access key ID (placeholder value); also used for MinIO root user
17+
AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-secret-key} # Default AWS secret access key (placeholder value); also used for MinIO root password
18+
AWS_S3_ENDPOINT_URL=${AWS_S3_ENDPOINT_URL:-minio:9000} # Endpoint URL for S3-compatible storage; defaults to 'minio:9000' (Docker container named 'minio')
19+
AWS_S3_BUCKET_NAME=${AWS_S3_BUCKET_NAME:-uploads} # Name of the S3 bucket; defaults to 'uploads'
20+
MINIO_ROOT_USER=${MINIO_ROOT_USER:-${AWS_ACCESS_KEY_ID}} # Root username for MinIO, linked with AWS access key
21+
MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD:-${AWS_SECRET_ACCESS_KEY}} # Root password for MinIO, linked with AWS secret key
22+
23+
# Application Configuration
24+
WEB_URL=${WEB_URL:-http://aiplan-local} # Base URL of the web application; defaults to 'http://aiplan-local' for local development
25+
SECRET_KEY=${SECRET_KEY:-secretkey} # Secret key for JWT tokens, needs to be changed
26+
DEFAULT_EMAIL=${DEFAULT_EMAIL:-aiplan@aisa.ru} # Default email address for admin account
27+
TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN:-} # Telegram bot token for integration with Telegram; left empty by default

.github/workflows/docker-push.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and Push app docker image to github registry
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build-and-push:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
packages: write
13+
contents: read
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
with:
18+
submodules: "true"
19+
20+
- name: Build and Push
21+
uses: dagger/dagger-for-github@v8.1.0
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
with:
25+
call: build-app --source=. --version=${{ github.ref_name }} --registryUser=${{ github.actor }} --registrySecret=GITHUB_TOKEN --imageName=aisa-it/aiplan
26+
version: "0.18.12"

.gitignore

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
node_modules
2+
.next
3+
4+
### NextJS ###
5+
# Dependencies
6+
/node_modules
7+
/.pnp
8+
.pnp.js
9+
10+
# Testing
11+
/coverage
12+
13+
# Next.js
14+
/.next/
15+
/out/
16+
17+
# Production
18+
/build
19+
20+
# Misc
21+
.DS_Store
22+
*.pem
23+
.history
24+
25+
# Debug
26+
npm-debug.log*
27+
yarn-debug.log*
28+
yarn-error.log*
29+
.pnpm-debug.log*
30+
31+
# Local env files
32+
.env.local
33+
.env.development.local
34+
.env.test.local
35+
.env.production.local
36+
37+
# Vercel
38+
.vercel
39+
40+
# Turborepo
41+
.turbo
42+
43+
## Django ##
44+
venv
45+
*.pyc
46+
staticfiles
47+
mediafiles
48+
.DS_Store
49+
50+
node_modules/
51+
assets/dist/
52+
npm-debug.log
53+
yarn-error.log
54+
55+
# Editor directories and files
56+
.idea
57+
*.suo
58+
*.ntvs*
59+
*.njsproj
60+
*.sln
61+
package-lock.json
62+
.vscode
63+
.vs
64+
65+
# Sentry
66+
.sentryclirc
67+
68+
# lock files
69+
package-lock.json
70+
pnpm-lock.yaml
71+
pnpm-workspace.yaml
72+
run.sh
73+
make.sh
74+
75+
aiplan-linux
76+
77+
out
78+
79+
/aiplan-values.yaml
80+
/reg.yaml
81+
/test/data
82+
/data
83+
84+
/test/aiplan-values-local.yaml
85+
86+
aiplan-linux-arm64
87+
aiwiki-ui
88+
89+
aiplan.go/sessions.db
90+
aiplan.go/schema.sql*
91+
92+
test.yaml
93+
test2.yaml
94+
95+
kuber/aiplan/values/*.dec
96+
97+
.env.test-db
98+
.env.local.fish
99+
.env.local
100+
101+
*/issues2.json
102+
*.db
103+
104+
api_tests/

.gitmodules

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[submodule "aiplan-help"]
2+
path = aiplan-help
3+
url = git@github.com:aisa-it/aiplan-help.git
4+
[submodule "aiplan-front"]
5+
path = aiplan-front
6+
url = git@github.com:aisa-it/aiplan-front.git
7+
[submodule "aiplan-api-ts"]
8+
path = aiplan-api-ts
9+
url = git@github.com:aisa-it/aiplan-api-ts.git

0 commit comments

Comments
 (0)