From 922d2f4b8a7440101a7d94c35ef9f5c2a3ae711e Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Sun, 23 May 2021 14:08:05 +0000 Subject: [PATCH] nginx user www-data --- .theia/settings.json | 3 +++ Dockerfile | 5 +++-- nginx.conf | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .theia/settings.json diff --git a/.theia/settings.json b/.theia/settings.json new file mode 100644 index 0000000..a1e56a5 --- /dev/null +++ b/.theia/settings.json @@ -0,0 +1,3 @@ +{ + "workbench.colorTheme": "light" +} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 1ce17d6..a85a939 100644 --- a/Dockerfile +++ b/Dockerfile @@ -84,8 +84,9 @@ RUN luarocks install --tree lua_modules luaposix && \ luarocks install --tree lua_modules etlua && \ luarocks install --tree lua_modules luafilesystem && \ luarocks install lua-resty-auto-ssl - +#RUN useradd -ms /bin/bash www-data +#USER www-data RUN mkdir /etc/resty-auto-ssl #\ - #&& chown www-data /etc/resty-auto-ssl + && chown -R www-data /etc/resty-auto-ssl CMD ["/usr/local/openresty/bin/openresty", "-g" ,"daemon off;"]; \ No newline at end of file diff --git a/nginx.conf b/nginx.conf index 5c35a02..4145e18 100644 --- a/nginx.conf +++ b/nginx.conf @@ -16,7 +16,7 @@ # See https://github.com/openresty/docker-openresty/blob/master/README.md#nginx-config-files # -#user nobody; +user www-data; #worker_processes 1; # Enables the use of JIT for regular expressions to speed-up their processing.