From c116021b2997c34e0022f23895c5a92c635649e4 Mon Sep 17 00:00:00 2001 From: finn Date: Thu, 19 Mar 2026 16:03:12 -0700 Subject: [PATCH] checkpoint build fixes for pmb and be --- backend/Dockerfile | 4 +-- compose.yaml | 10 +++--- proxy/conf | 88 ++++++++++------------------------------------ 3 files changed, 25 insertions(+), 77 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 51ad67d..df00c7b 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,9 +1,9 @@ # syntax=docker/dockerfile:1.4 -FROM python:3-slim-bookworm AS builder +FROM python:3.12-slim-bookworm AS builder # Second line optional/debug/qol RUN apt update && apt install -y \ - libmariadb-dev gcc \ + libmariadb-dev gcc python3-setuptools \ mariadb-client diff --git a/compose.yaml b/compose.yaml index 533ea22..54faef2 100644 --- a/compose.yaml +++ b/compose.yaml @@ -121,11 +121,11 @@ services: - frontnet pmb: - #build: - # args: - # GPG_PP: $BUILD_GPG_PP - # context: pmb-pf - # dockerfile: Dockerfile + build: + args: + GPG_PP: $BUILD_GPG_PP + context: pmb-pf + dockerfile: Dockerfile image: site_pmb:latest expose: - "25" diff --git a/proxy/conf b/proxy/conf index 1038d71..939d149 100755 --- a/proxy/conf +++ b/proxy/conf @@ -1,72 +1,20 @@ -#server { -# listen 80; -# server_name localhost; -# location / { -# proxy_pass http://backend:8000; -# } - - -# always redirect to https server { - listen 80 default_server; - server_name _; - return 301 https://$host$request_uri; + listen 80; + server_name localhost; + location / { + proxy_pass http://backend:8000; + } + location /gutty{ + proxy_pass http://gitea:3000; + } + location /nextcloud{ + client_max_body_size 512M; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_pass http://nextcloud/; + } + + } - -server { - listen 443 ssl http2; - # use the certificates - ssl_certificate /etc/letsencrypt/live/oily.dad/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/oily.dad/privkey.pem; - server_name oily.dad www.oily.dad; - root /var/www/html; - index index.php index.html index.htm; - - add_header Onion-Location http://oilydada7ckiseinkbeathsefwgkvjrce743xy7x7iiybkuxh4vheead.onion$request_uri; - - location / { - proxy_pass http://backend:8000/; - } -} - -server { - listen 443 ssl http2; - # use the certificates - ssl_certificate /etc/letsencrypt/live/oily.dad/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/oily.dad/privkey.pem; - server_name gut.oily.dad; - root /var/www/html; - index index.php index.html index.htm; - - location / { - client_max_body_size 512M; - #proxy_pass http://localhost:3000; - proxy_set_header Connection $http_connection; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://gitea:3000/; - } -} - -server { - listen 443 ssl http2; - # use the certificates - ssl_certificate /etc/letsencrypt/live/oily.dad/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/oily.dad/privkey.pem; - server_name nextcloud.oily.dad; - root /var/www/html; - index index.php index.html index.htm; - - location / { - client_max_body_size 512M; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://nextcloud/; - } -} -