mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 08:45:02 +01:00
backend
This commit is contained in:
parent
b26f72a59e
commit
dec1acc6a1
3 changed files with 25 additions and 1 deletions
|
|
@ -42,5 +42,19 @@ http {
|
|||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/live/nilstrieb.dev/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/certs/live/nilstrieb.dev/privkey.pem;
|
||||
|
||||
server_name "api.cors-school.nilstrieb.dev";
|
||||
|
||||
location / {
|
||||
proxy_pass http://cors-school-backend:8080/;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
server_tokens off;
|
||||
}
|
||||
|
|
@ -33,5 +33,15 @@ http {
|
|||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
server_name "api.cors-school.nilstrieb.dev";
|
||||
|
||||
location / {
|
||||
proxy_pass http://cors-school-backend:8080/;
|
||||
}
|
||||
}
|
||||
|
||||
server_tokens off;
|
||||
}
|
||||
|
|
@ -5,4 +5,4 @@ docker run --net internal --name cors-school-frontend -d --restart=always docker
|
|||
docker run --net internal -d --name cors-postgres -e POSTGRES_PASSWORD=hugo58hugo -e POSTGRES_DB=davinci postgres
|
||||
|
||||
# backend
|
||||
docker run --net internal -d --name cors-school-backend -v -e DATABASE_URL=postgres://postgres:hugo58hugo@cors-postgres/davinci -e RUST_LOG=info -e JWT_SECRET=redacted
|
||||
docker run --net internal -d --name cors-school-backend -e DATABASE_URL=postgres://postgres:hugo58hugo@cors-postgres/davinci -e RUST_LOG=info -e JWT_SECRET='redacted' docker.nilstrieb.dev/cors-school-backend:1.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue