Skip to content

Commit

Permalink
nextcloud: Fix Nginx permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo1003 committed Jan 7, 2024
1 parent a8f1a14 commit 19de836
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions nextcloud/Containerfile-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ RUN set -ex; \
gpgconf --kill all; \
rm nextcloud.tar.bz2.asc nextcloud.tar.bz2; \
rm -rf "$GNUPGHOME"; \
mkdir -p /var/lib/nginx; \
chown -R www-data:www-data /var/lib/nginx; \
chown -R www-data:www-data /var/www; \
chmod -R g=u /var/www;

Expand All @@ -42,6 +40,6 @@ WORKDIR /var/www/nextcloud
VOLUME /var/www/nextcloud/custom_apps
VOLUME /var/www/nextcloud/themes

USER 101:101
USER 100:101

CMD ["nginx", "-c", "/etc/nginx/nginx.conf"]
2 changes: 1 addition & 1 deletion nextcloud/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
daemon off;
user www-data;
user nginx;
worker_processes auto;

error_log /var/log/nginx/error.log warn;
Expand Down

0 comments on commit 19de836

Please sign in to comment.