nginx user www-data

This commit is contained in:
2021-05-23 14:08:05 +00:00
parent d744dd2c5d
commit 922d2f4b8a
3 changed files with 7 additions and 3 deletions

3
.theia/settings.json Normal file
View File

@@ -0,0 +1,3 @@
{
"workbench.colorTheme": "light"
}

View File

@@ -84,8 +84,9 @@ RUN luarocks install --tree lua_modules luaposix && \
luarocks install --tree lua_modules etlua && \ luarocks install --tree lua_modules etlua && \
luarocks install --tree lua_modules luafilesystem && \ luarocks install --tree lua_modules luafilesystem && \
luarocks install lua-resty-auto-ssl luarocks install lua-resty-auto-ssl
#RUN useradd -ms /bin/bash www-data
#USER www-data
RUN mkdir /etc/resty-auto-ssl #\ 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;"]; CMD ["/usr/local/openresty/bin/openresty", "-g" ,"daemon off;"];

View File

@@ -16,7 +16,7 @@
# See https://github.com/openresty/docker-openresty/blob/master/README.md#nginx-config-files # See https://github.com/openresty/docker-openresty/blob/master/README.md#nginx-config-files
# #
#user nobody; user www-data;
#worker_processes 1; #worker_processes 1;
# Enables the use of JIT for regular expressions to speed-up their processing. # Enables the use of JIT for regular expressions to speed-up their processing.