Skip to content

Commit

Permalink
switch to standard user www-data for serving web content
Browse files Browse the repository at this point in the history
remove unused acme folder
  • Loading branch information
dernasherbrezon committed Nov 2, 2024
1 parent 8ad9a85 commit 086aae8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
6 changes: 1 addition & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
<unixGroupId>pi</unixGroupId>
<arch>all</arch>
<section>embedded</section>
<depends>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</depends>
<depends>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</depends>
<javaServiceWrapper>false</javaServiceWrapper>
<fileSets>
<fileSet>
Expand All @@ -304,10 +304,6 @@
<source>${basedir}/src/main/deb/lib</source>
<target>/lib</target>
</fileSet>
<fileSet>
<source>${basedir}/src/main/deb/html</source>
<target>html</target>
</fileSet>
<fileSet>
<source>${basedir}/src/main/resources/.wxtoimglic</source>
<target>/home/pi/.wxtoimglic</target>
Expand Down
Empty file.
7 changes: 1 addition & 6 deletions src/main/resources/r2cloud-prod.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
user pi;
user www-data;
worker_processes 1;

events {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 086aae8

Please sign in to comment.