Add autist

main
Your Name 2022-07-24 19:27:44 +00:00
parent 22bc1193e6
commit 8359021187
2 changed files with 48 additions and 1 deletions

View File

@ -176,4 +176,38 @@ http {
proxy_pass "http://nextcloud";
}
}
### AUTISM-APP ###
upstream autism-app {
server autism_app:3000;
}
server {
listen 80;
server_name zavedanje-o-avtizmu.xyz;
access_log /logs/autism.log custom_log;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://zavedanje-o-avtizmu.xyz$request_uri;
}
}
server {
listen 443 ssl http2;
server_name zavedanje-o-avtizmu.xyz;
ssl_certificate /etc/letsencrypt/live/zavedanje-o-avtizmu.xyz/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/zavedanje-o-avtizmu.xyz/privkey.pem;
location / {
proxy_pass "http://autism-app/";
}
}
}

View File

@ -9,6 +9,8 @@ networks:
name: gitea
nextcloud:
name: nextcloud
autism_app_network:
name: autism_app_network
services:
#
@ -24,6 +26,7 @@ services:
- gitea
- nextcloud
- nextcloud_db
- autism_app
ports:
- 80:80
- 443:443
@ -38,6 +41,7 @@ services:
- jellyfin
- gitea
- nextcloud
- autism_app_network
certbot:
image: certbot/certbot:latest
@ -136,3 +140,12 @@ services:
#
# OTHER SERVICES
#
autism_app:
container_name: autism_app
image: autism_app
build:
context: ./autism-app
volumes:
- ./autism-app/src:/app/src
networks:
- autism_app_network