From 83590211876a5b4c3f3a6adc251553ccfaa6a060 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 24 Jul 2022 19:27:44 +0000 Subject: [PATCH] Add autist --- config/nginx/nginx.conf | 36 +++++++++++++++++++++++++++++++++++- docker-compose.yml | 13 +++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/config/nginx/nginx.conf b/config/nginx/nginx.conf index eb492d3..699ccb0 100644 --- a/config/nginx/nginx.conf +++ b/config/nginx/nginx.conf @@ -175,5 +175,39 @@ http { location / { 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/"; + } + } } diff --git a/docker-compose.yml b/docker-compose.yml index 09a8e18..85d4daf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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