user and default
This commit is contained in:
@@ -86,7 +86,7 @@ RUN luarocks install --tree lua_modules luaposix && \
|
|||||||
luarocks install lua-resty-auto-ssl
|
luarocks install lua-resty-auto-ssl
|
||||||
#RUN useradd -ms /bin/bash www-data
|
#RUN useradd -ms /bin/bash www-data
|
||||||
#USER www-data
|
#USER www-data
|
||||||
RUN mkdir /etc/resty-auto-ssl #\
|
RUN mkdir -p /etc/resty-auto-ssl/storage/ #\
|
||||||
&& chown -R www-data /etc/resty-auto-ssl
|
&& chown -R www-data /etc/resty-auto-ssl
|
||||||
|
copy ./conf/* /etc/nginx/conf.d/
|
||||||
CMD ["/usr/local/openresty/bin/openresty", "-g" ,"daemon off;"];
|
CMD ["/usr/local/openresty/bin/openresty", "-g" ,"daemon off;"];
|
||||||
5
conf/default.conf
Normal file
5
conf/default.conf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
# section and adds this directive:
|
# section and adds this directive:
|
||||||
# `include /etc/nginx/conf.d/*.conf;`
|
# `include /etc/nginx/conf.d/*.conf;`
|
||||||
#
|
#
|
||||||
# The `docker-openresty` file `nginx.vh.default.conf` is copied to
|
# The `docker-openresty` file `nginx.conf` is copied to
|
||||||
# `/etc/nginx/conf.d/default.conf`. It contains the `server section
|
# `/etc/nginx/conf.d/default.conf`. It contains the `server section
|
||||||
# of the upstream `nginx.conf`.
|
# of the upstream `nginx.conf`.
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user