From 086aae8865db2207036f0ed54d7aba36742caded Mon Sep 17 00:00:00 2001 From: dernasherbrezon Date: Sat, 2 Nov 2024 15:24:13 +0000 Subject: [PATCH] switch to standard user www-data for serving web content remove unused acme folder --- pom.xml | 6 +----- src/main/deb/html/.well-known/acme-challenge/EMPTY | 0 src/main/resources/r2cloud-prod.conf | 7 +------ 3 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 src/main/deb/html/.well-known/acme-challenge/EMPTY diff --git a/pom.xml b/pom.xml index 1324f8f5..a7149788 100644 --- a/pom.xml +++ b/pom.xml @@ -293,7 +293,7 @@ pi all
embedded
- r2cloud-ui (>=20240303125106), ${jdk.version}, nginx-light(>=1.10.3), rtl-sdr(>=0.6.4), coreutils(>=8.26), libxft2(>=2.3.2), sox(>=14.4.1), wget + r2cloud-ui (>=20241102151628), ${jdk.version}, nginx-light(>=1.10.3), rtl-sdr(>=0.6.4), coreutils(>=8.26), libxft2(>=2.3.2), sox(>=14.4.1), wget false @@ -304,10 +304,6 @@ ${basedir}/src/main/deb/lib /lib - - ${basedir}/src/main/deb/html - html - ${basedir}/src/main/resources/.wxtoimglic /home/pi/.wxtoimglic diff --git a/src/main/deb/html/.well-known/acme-challenge/EMPTY b/src/main/deb/html/.well-known/acme-challenge/EMPTY deleted file mode 100644 index e69de29b..00000000 diff --git a/src/main/resources/r2cloud-prod.conf b/src/main/resources/r2cloud-prod.conf index b5a80311..79b13391 100644 --- a/src/main/resources/r2cloud-prod.conf +++ b/src/main/resources/r2cloud-prod.conf @@ -1,4 +1,4 @@ -user pi; +user www-data; worker_processes 1; events { @@ -63,11 +63,6 @@ http { add_header Cache-Control "public, max-age=86400"; } - location ~ /.well-known { - root /home/pi/r2cloud/html; - allow all; - } - location /api/v1/ { proxy_pass http://backend; proxy_set_header Host $http_host;