- Register github app
- Run local / host on AWS
- edit
.env.dev
file, you can take variable names from.env.example
sh run-dev.sh
- Backend is working
- edit
front/.env
, you can take variable names from.env.example
cd front && npm i && npm run dev
- Frontend is working
upstream back {
server 127.0.0.1:3000;
}
upstream front {
server localhost:5173;
}
server {
listen 80;
listen [::]:80;
server_name localhost;
client_max_body_size 50M;
location / {
proxy_pass http://front;
}
location /repos {
proxy_pass http://front;
}
location /\w/new {
proxy_pass http://front;
}
location /api/set {
proxy_pass http://back;
proxy_redirect off;
proxy_read_timeout 300s;
}
location /api/status {
proxy_pass http://back;
proxy_redirect off;
proxy_read_timeout 300s;
}
location /redirect {
proxy_pass http://back;
proxy_redirect off;
proxy_read_timeout 300s;
}
location /callback {
proxy_pass http://back;
proxy_redirect off;
proxy_read_timeout 300s;
}
location /api/ {
proxy_pass http://back;
proxy_redirect off;
proxy_read_timeout 300s;
}
}
- sudo systemctl restart nginx