Skip to content

Commit

Permalink
clean initial server architecture updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RuzgarAtaOzkan committed Nov 2, 2024
1 parent 0958767 commit 4b65632
Show file tree
Hide file tree
Showing 36 changed files with 295 additions and 4,050 deletions.
14 changes: 6 additions & 8 deletions .env
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
PORT=3000
HOST=127.0.0.1

NODE_ENV=prod

SESSION_SECRET=SECRET123
SESSION_NAME=domain_sid
SESSION_NAME=server_sid

DB_CONN_STR=mongodb+srv://admin:123
DB_NAME=domain
DB_URL=mongodb+srv://admin:123
DB_NAME=server

PERM_ADMIN=SECRET123
PERM_USER=SECRET123

EMAIL_HOST=smtp.gmail.com
EMAIL_NO_REPLY_USERNAME=no-reply@domain.com
EMAIL_NO_REPLY_USERNAME=no-reply@server.com
EMAIL_NO_REPLY_PASSWORD=SECRET123

URL_API=api.domain.com
URL_UI=domain.com
URL_API=api.server.com
URL_UI=server.com

SECRET_KEY_CAPTCHA=0x123
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# dont forget to update appleboy/ssh-action@{version}

name: deploy linux-web-server
name: deploy server
on:
push:
branches: [master]
Expand All @@ -16,10 +16,10 @@ jobs:
username: ${{ secrets.SSH_USERNAME }} # User of the server you want to ssh into
script: |
ls
cd ./apps/linux-web-server
cd ./apps/server
git fetch
git pull origin master
npm install
npm audit fix
npm run build
pm2 reload linux-web-server --update-env
pm2 reload server --update-env
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Features:

Secure Cookie Authentication for User Communication
0x.org API ready endpoints
coingecko.com tokens API ready endpoints
Simple Admin-User Role System
Simple User Reference System
Media Upload through File System
Expand All @@ -27,8 +25,8 @@ $ # sudo npm install -g pm2 (optional but recommended)

# Project installation

$ git clone https://github.com/RuzgarAtaOzkan/linux-web-server.git
$ cd ./linux-web-server
$ git clone https://github.com/ruzgarataozkan/server.git
$ cd ./server
$ npm install
$ npm run build
$ npm run start
Expand All @@ -41,20 +39,20 @@ HOST=127.0.0.1
NODE_ENV=prod

SESSION_SECRET=SECURE_RANDOM_STRING
SESSION_NAME=domain_sid
SESSION_NAME=server_sid

DB_CONN_STR=YOUR_MONGODB_CONNECTION_STRING
DB_NAME=domain
DB_URL=YOUR_MONGODB_CONNECTION_STRING
DB_NAME=panpa

PERM_ADMIN=SECURE_RANDOM_STRING
PERM_USER=SECURE_RANDOM_STRING

EMAIL_HOST=smtp.gmail.com
EMAIL_USERNAME=mail@domain.com
EMAIL_USERNAME=mail@server.com
EMAIL_PASSWORD=123

URL_API=api.domain.com
URL_UI=domain.com
URL_API=api.server.com
URL_UI=server.com

API_KEY_CAPTCHA=YOUR_HCAPTCHA_API_KEY

Expand Down
Loading

0 comments on commit 4b65632

Please sign in to comment.