Commit Graph

181 Commits

Author SHA1 Message Date
Nathan.fooo 66b7637ad0
chore: fix build args (#346)
* chore: fix build args

* chore: fix build args
2024-02-23 15:50:37 +08:00
nathan a5804d0923 ci: build with feature 2024-02-23 05:38:39 +08:00
Nathan.fooo d5869742c2
fix: test (#339)
* fix: test

* fix: test

* fix: test
2024-02-21 15:05:23 +08:00
Nathan.fooo a1494f0d09
feat: Realtime metrics (#309)
* chore: add metric

* chore: add metric

* chore: clippy

* chore: clippy

* ci: set rust version

* ci: set rust version

* ci: set rust version
2024-02-09 12:02:54 +08:00
Nathan.fooo a9ab3bbb22
chore: update exp in (#288) 2024-02-03 08:36:52 +08:00
Nathan.fooo 5d473ba537
chore: remove unused feature (#277)
* chore: remove unused feature

* ci: fix
2024-01-30 05:52:49 +08:00
Nathan.fooo e1b35a1a24
feat: enable cors in nginx (#276)
* feat: enable cors in nginx

* chore: update

* chore: fix ci
2024-01-29 13:14:50 +08:00
Nathan.fooo 56615e2274
chore: run with different env file (#275) 2024-01-29 02:26:43 +08:00
Nathan.fooo a318d2f96d
test: wasm test (#271)
* test: wasm test

* ci: run wasm test

* fix: wasm websocket connect

* chore: add logs

* ci: fix
2024-01-24 05:51:42 +08:00
Nathan.fooo 480b7377f2
chore: client api wasm (#262)
* feat: client_api wasm

* ci: client_api wasm ci

* ci: client_api wasm ci
2024-01-17 03:20:24 +08:00
Zack 615b402782
docs: Doc improvement (#256)
* feat: update docs and self host deploy configs

* feat: use default ports for dev

* feat: revamp self host

* feat: use nginx resolver

* feat: cargo fmt

* feat: ci integration test with nginx routing

* feat: cargo fmt

* feat: make docker ci use deploy env rather than dev env

* feat: update api external url for deploy test

* fix: if sqlx is set to offline dont run casbin for tests

* fix: set api external url for tests

* fix: ignore sqlx test with cfg

* fix: sqlx tests

* fix: test use env

* feat: update the docs on optional components
2024-01-12 16:01:16 +08:00
Nathan.fooo 8e38ae7b69
refactor: remove rust-s3, sqlx from client-api (#245)
* refactor: remove rust-s3, sqlx from client-api

* chore: fmt

* chore: add ci check

* chore: add ci check

* chore: add ci check
2024-01-05 06:12:01 +08:00
Fu Zi Xiang 390fb0d328
docs: improve info on external postgres 2023-12-28 11:35:38 +08:00
Fu Zi Xiang e17a3ec92a
fix: remove strategy 2023-12-27 06:28:00 +08:00
Fu Zi Xiang 4b055d161b
fix: arm and amd arch 2023-12-27 06:25:37 +08:00
Fu Zi Xiang 1c02b3d03f
fix: gotrue dockerfile 2023-12-27 05:39:29 +08:00
Fu Zi Xiang dc6ff036b1
feat: support arm build 2023-12-27 05:15:40 +08:00
Fu Zi Xiang 689486f091
fix: latest tag 2023-12-27 03:57:38 +08:00
Fu Zi Xiang 7e7c692156
fix: github tag 2023-12-27 03:52:11 +08:00
Fu Zi Xiang 6dedb80ec0
feat: added build for gotrue image 2023-12-27 03:42:43 +08:00
Fu Zi Xiang b69ea10df0
fix: wait for pods to be ready before deletion - 2 2023-12-25 19:33:20 +08:00
Fu Zi Xiang a00b867db5
fix: wait for pods to be ready before deletion 2023-12-25 19:19:42 +08:00
Fu Zi Xiang e356e19d2c
fix: delete uploaded images 2023-12-25 18:11:50 +08:00
Fu Zi Xiang 4378063036
feat: use github sha instead of dev 2023-12-25 17:51:32 +08:00
Fu Zi Xiang 134082da3e
fix: needs image build before deplo 2023-12-25 17:11:25 +08:00
Fu Zi Xiang bcc1098424
feat: add back image build 2023-12-20 15:45:21 -08:00
Fu Zi Xiang 237cd785dc
feat: add deploy kube 2023-12-20 15:41:41 -08:00
Fu Zi Xiang 0347260028
fix: debug 1 2023-12-20 13:02:57 -08:00
Fu Zi Xiang 444f974cf2
fix: test deploy after image build 2023-12-20 12:51:09 -08:00
Fu Zi Xiang f5ea1d3a34
fix: docker image name 2023-12-20 12:32:56 -08:00
Fu Zi Xiang 654d510afc
fix: debug docker images 2023-12-20 12:20:00 -08:00
Fu Zi Xiang fc54769632
feat: test deploy kube 2023-12-20 11:12:40 -08:00
Fu Zi Xiang 00197e971f
feat: deploy dev image 2023-12-20 10:40:35 -08:00
Zack a7b259ad20
feat: use only env var for appflowy cloud (#224)
* feat: use only env var for appflowy cloud

* fix: jwt local testing

* fix: security audit

* feat: update docker deploy configs

* fix: test utils dotenvy

* fix: test try sqlx offline

* fix: add gotrue configs for appflowy

* fix: redis uri in docker
2023-12-19 08:45:42 +08:00
nathan fc312cc48c chore: update build admin_frontend context 2023-12-18 03:50:42 +08:00
Nathan.fooo 432faee316
chore: add logs (#182)
* chore: log html

* chore: logs
2023-11-27 08:48:17 +08:00
Nathan.fooo 58a7d17493
fix: admin frontend image (#172) 2023-11-20 21:47:40 +08:00
Nathan.fooo 3fe8e6d88a
ci: build appflowy-cloud & admin frontend docker image (#170) 2023-11-19 00:20:14 +08:00
nathan 988b3fc6bb ci: disable using appflowyinc in images test 2023-11-16 11:38:37 +08:00
nathan 35b9d76091 docs: update 2023-11-16 11:10:40 +08:00
Nathan.fooo 82bcb5e879
feat: Deployment update (#169)
* docs: add ubuntu setup guide

* feat: add docker ci

* feat: create admin frontend image

* feat: trigger push docker ci

* ci: multiple arch

* fix: build

* chore: update ci

* chore: update ci

* fix: build

* fix: build

* fix: test

* fix: database access

* fix: test

* fix: test

* chore: update

* chore: update
2023-11-16 00:29:18 +08:00
Nathan.fooo d37fbbf486
ci: vendor protoc (#152)
* ci: vendor protoc

* ci: remove protoc compiler install
2023-11-08 21:12:00 +08:00
Nathan.fooo f1dad07caa
feat: http init sync (#151)
* fix: bugs

* chore: support message type

* refactor: ws message

* feat: post realtime message

* feat: use proto to reduce message size

* ci: update

* ci: install protoc

* ci: update docker

* chore: update ci

* ci: update docker

* ci: fix

* ci: fix

* ci: fix
2023-11-08 15:41:39 +08:00
Nathan.fooo f5fd264309
feat: support discord and github (#136)
* feat: support discord and github

* feat: enable discord and github oauth

* chore: update dev.env
2023-10-24 13:05:24 +08:00
Fu Zi Xiang 08967b8091
fix: deploy to test 2023-10-18 14:59:49 +08:00
nathan 7b77805d8d chore: add logs 2023-10-13 10:37:28 +08:00
Nathan.fooo a02da07627
Test deploy docker log (#105)
* chore: try to fix logs in docker

* ci: test deploy

* ci: log level
2023-10-08 21:42:25 +08:00
Fu Zi Xiang 375c463566
feat: remove unneeded sudo 2023-10-06 22:42:42 +08:00
Fu Zi Xiang 096cfb8d2e
feat: upgrade to use docker with compose plugin 2023-10-06 22:31:25 +08:00
Nathan.fooo 926da912ea
chore: log level (#104) 2023-10-06 21:34:14 +08:00
Nathan.fooo 9918a6fe43
chore: ws nginx config (#100) 2023-10-05 22:32:19 +08:00
Zack 3de367c8fe
ci: fix (#98)
* feat: use self hosted runner

* fix: bash syntax

* fix: debug github runner user

* fix: debug github runner user - 2

* fix: try again

* fix: add clean up and upgrade rust toolchain

* fix: debug PATH

* fix: temporary disable docker build

* fix: try export path

* fix: resume build

* fix: add LANG env

* fix: use the compose plugin instead

* feat: upgrade to use docker compose plugin insead

* fix: add locale to dockerfile build

* feat: revert back to github actions

* fix: upgrade to use docker compose plugin

* fix: try revert to 1.69.0
2023-10-05 17:45:08 +08:00
Nathan.fooo c0aea377d0
test: test with dev client (#91)
* test: test with dev client

* chore: add nginx conf

* chore: fix clippy

* chore: disable docker in lint
2023-10-04 21:43:21 +08:00
Nathan.fooo cf84557ebe
feat: oauth provider (#86)
* chore: remove opener

* chore: rename method

* chore: add docs

* chore: modify env
2023-10-03 22:06:07 +08:00
Nathan.fooo b8bd53ff5c
feat: create collab sync crate (#79)
* feat: create collab sync crate

* test: add tst

* test: add test

* test: update tests

* chore: clippy

* chore: clippy

* chore: clippy

* chore: add retry when subscribe group

* chore: disable realtime test
2023-09-28 09:28:46 +08:00
Nathan.fooo b729e3529d
chore: bump collab version (#78)
* chore: bump collab version

* chore: bump collab version

* chore: update

* chore: update

* chore: update

* chore: update tests

* chore: clippy

* chore: clippy

* chore: clippy
2023-09-26 22:52:41 +08:00
Zack f1a16058ce
feat: Gotrue admin api (#73)
* feat: set up admin account and auto confirm during appflowy start

* feat: client auth against gotrue whenever possible

* feat: admin add user

* feat: implement admin add user

* feat: generate registered user

* fix: enable cloud feature for client_api

* fix: test same user fix
2023-09-23 17:07:02 +08:00
Zack df9c71edb2
feat: returns if user is new for both oauth and password login (#67)
* feat: returns if user is new for both oauth and password login

* test: add test for firt time sign_in and subsequent

* chore: remove uneeded use

* fix: compile

---------

Co-authored-by: nathan <nathan@appflowy.io>
2023-09-21 14:05:25 +08:00
Nathan.fooo ca0813e265
refactor: ws ping (#66)
* chore: ws client

* chore: update ws ping

* chore: fix test

* chore: public funcs

* chore: fix test

* chore: check clent-api compile
2023-09-20 20:53:39 +08:00
Zack 0676db7ed6
feat: Workspace members (#63)
* fix: create user if they sign up with oauth

* feat: add workspaces_members add and remove operations

* feat: add insert workspace members

* feat: attach db ops to api ops

* refactor: separate user and workspace scope

* chore: add sqx query metadata

* chore: add 2nd registered user for testing

* ci: use valid email

* ci: fix registered password invalid

* fix: use email instead of uid

* fix: use email instead of uid sqlx query metadata

* feat: add test for workspace member

* test: added workspace add and delete with checking

* ci: fix email
2023-09-19 20:59:16 +08:00
Zack 6c4bbbbf7f
feat: Nginx (#57)
* feat: added nginx to docker-compose

* ci: base64 decode for cert and key

* test: fix: wrap secert with double quote

* fix: revert previous cert dir

* feat: use 443 for default https port in nginx

* fix: correct 443 (from 433)

* fix: use correct github action secrets

* fix: use docker compose force recreate

* fix: use another crt and key

* fix: use appflowy cloud crt and key
2023-09-18 11:42:18 +08:00
Zack 3c598f178e
ci: test env docker-compose deployment (#48)
* ci: test env docker-compose deployment

* ci: test deployment

* fix: replace delimiter with pipe to avoid conflict

* fix: API_EXTERNAL_URL_TEST from secrets

* chore: remove unneeded deploy when pull request

* fix: cloud public host name/address

* chore: trigger: change to push

* chore: add ext_url for exposed gotrue auth server
2023-09-15 21:13:43 +08:00
Nathan.fooo 939ea29c3b
feat: Realtime multiple conn test(#45)
* chore: multiple connection with same user

* chore: connect with device id

* fix: multiple connection

* test: add more test

* chore: fmt
2023-09-15 09:59:37 +08:00
Nathan.fooo e03a6ce587
test: fix collab edit test (#42)
* test: fix

* chore: cargo sqlx check workspce

* chore: remove rocksdb deps
2023-09-14 14:05:15 +08:00
Zack da03009004
feat: use apply server migration when server starts (#30)
* feat: use apply server migration when server starts

* fix: add docs and fix local run

* feat: refactor migration

* feat: local build server wait on gotrue

* fix: add back sqlx commands

* fix: add migrations directory

* fix: try SQLX_OFFLINE=true

* test: fix rustlint

* chore: clippy fmt

---------

Co-authored-by: nathan <nathan@appflowy.io>
2023-09-12 15:12:08 +08:00
Zack 853f089ca0
feat: test gotrue when app start, use state for gotrue client, use go… (#24)
* feat: test gotrue when app start, use state for gotrue client, use gotrue UUID instead of BIGINT for user uid

* feat: backward compatibility with native authetication

* fix: native auth use uuid instead

* fix: sqlx preparation

* fix: sqlx metadata and unused variable

* fix: clippy

* fix: create workspace if not exist after sign in

* chore: update .sqlx with new query

* feat: query workspace

* revert: revert using i64 for user id

* fix: update sqlx queries

* fix: update .sqlx metadata

* feat: only use uuid from sqlx types, select user_profile view

* ci: add version check

* ci: add missing sqlx files

* chore: cargo fmt
2023-09-11 17:16:41 +08:00
Nathan.fooo 63c992602f
tests: fix realtime tests (#27)
* tests: fix realtime tests

* chore: update collab rev

* ci: fix realtime ci

* ci: update test path
2023-09-11 15:14:58 +08:00
Nathan.fooo 7a09e1b860
chore: remove redundant sqlx command (#22)
* chore: remove redundant sqlx command

* chore: remove docker_env.sh

* chore: copy sqlx to docker

* chore update
2023-09-08 22:51:16 +08:00
Zack 36499be26c
docs: test + deploy + environmental variables (#14)
* doc: test + deploy + environmental variables

* doc: local dev and testing(WIP)

* dev: set up local testing

* fix: ci: add DATABASE_URL env

* chore: update .env

* ci: fix

* dev: docker-compose-dev.yml

* ci: update

* ci: test env

* ci: add services

* ci: add services

* ci: update port

* ci: rename ci.yaml to rustlint.yaml

* ci: test

* ci: simplify tests

* ci: use cargo sqlx commands directly

* ci: fix: registered user

* ci: fix: test registered user creation

* ci: fix: test registered user creation - 2

* ci: fix: debug docker ci

* ci: fix: docker integration registered user

* ci: fix: docker integration registered user

---------

Co-authored-by: nathan <nathan@appflowy.io>
2023-09-07 15:29:39 +08:00
Nathan.fooo e2e6d79cb0
chore: create tables (#16)
* chore: create tables

* ci: remove postgres service

* chore: separate ci

* chore: run cargo clippy with sqlx offline mode

* refactor: create docker action

* chore: rename

* chore: update table

* chore: update supabase_admin

* chore: update supabase_admin

* chore: remove create auth.jwt function
2023-09-07 10:43:10 +08:00
Nathan.fooo f9825d4221
feat: refactor server collab (#15)
* refactor: collab storage

* chore: fix test

* chore: update sqlx version

* chore: disable realtime test

* chore: sqlx prepare

* chore: remove init.sql
2023-09-06 18:22:40 +08:00
Zack b28d5dda4c
feat: ci: dockerize gotrue auth server (#13)
* feat: ci: dockerize gotrue auth server

* feat: build: add gotrue to docker-compose

* fix: build: docker-compose + test

* feat: ci: simplify tests

* feat: ci: add back needed services for compilation

* fix: ci: github secrets

* fix: ci: use signup

* fix: ci: add export

* fix: test: generate unique email for registration to avoid conflict
2023-09-06 14:12:39 +08:00
Zack c8ae099e90
feat: Auth server integration (#9)
* feat: integrate signup with gotrue auth server

* feat: added email and password sign in via auth server

* feat: added sign in scenarios and client handling

* fix: added missing files

* feat: refine api and store access token in client

* feat: impl token decode and placeholder for signout

* feat: added impl for logout with auth server

* feat: auth server dependency injection, client sign_out impl

* feat: abstract verify token, add placeholder for update endpoint

* feat: make authorization as a param of http handler request

* feat: add update_user to client of auth server

* feat: add client code and test cases for password change

* chore: rename appflowy-server to appflowy-cloud

* ci: upgrade reqwest version to fix audit issue

* ci: fix again

* ci: added gotrue env secrets

---------

Co-authored-by: nathan <nathan@appflowy.io>
2023-09-04 11:23:40 +08:00
Zack 58f0cdd235
feat: Client API and Integration test (#7)
* feat: change to client from test_server

* feat: change to client from test_server: register_success

* fix: use time in email for indempotency

* added rest of register test case

* feat: added client impl for login

* feat: Client: store logged token

* feat: added password change impl

* feat: remove test api, move to using Client

* chore: remove unneeded code

* chore: add client's integration test

* chore: try fix github workflow

* chore: try fix github workflow

* chore: try fix github actions - 2

* chore: try fix github actions - change rust toolchain

* chore: try fix github actions - remove name field

* chore: ci: fixed missing run key

* chore: ci: fixed missing Checkout

* chore: ci: added env settings for docker-compose

* chore: ci: added env BACKEND_VERSION for docker-compose

* chore: ci: added context . to docker-compose.yml

* chore: ci: added old dockerfiles to archive, default values in docker-compose.yml

* chore: github workflow: build server with env SQLX_OFFLINE true

* chore: remove unneeded deps

* chore: ci: try SQLX_OFFLINE export

* fix: ci: remove unneeded integration test ci, spawn server while cargo test

* fix: lint and github workflow

* fix: lint

* fix: github workflows: use workspaces instead of key

* fix: lint: use as_deref instead
2023-08-10 09:49:47 +08:00
nathan 920e7f9564 ci: fix audit 2023-03-16 21:33:11 +08:00
nathan 4adfd1a75f ci: fix test 2023-03-14 14:45:53 +08:00
nathan aca7e8737e ci: add audit 2023-03-14 10:01:05 +08:00
nathan a8ea270547 ci: update ci 2023-03-14 09:50:01 +08:00
nathan 690ea42d85 refactor: config log 2023-03-12 09:18:06 +08:00
appflowy 3012acce30 refactor: use cargo workspace 2022-02-07 15:08:49 +08:00
appflowy 0bda429d93 init appflowy server 2022-02-06 10:55:48 +08:00