From roycercordova at gmail.com Tue May 5 09:44:14 2020 From: roycercordova at gmail.com (Roycer Cordova Cartagena) Date: Tue, 5 May 2020 04:44:14 -0500 Subject: Problem Message-ID: Cheers, Help me, I have a problem with mysql [image: image.png] from the container I success to ping [image: image.png] [image: image.png] *.env* [image: image.png] *config.json* [image: image.png] *Dockerfile: * [image: image.png] *docker-compose.yml* [image: image.png] thanks -- Roycer Israel Cordova Cartagena Analista y Desarrollador de Software Ingenier?a de Sistemas Celular +51 930231242 Github roycer -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 11377 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 14669 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 27795 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 27955 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 21451 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 3993 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 17394 bytes Desc: not available URL: From vbart at nginx.com Thu May 28 22:15:06 2020 From: vbart at nginx.com (Valentin V. Bartenev) Date: Fri, 29 May 2020 01:15:06 +0300 Subject: Unit 1.18.0 release Message-ID: <3055518.44csPzL39Z@vbart-laptop> Hi, I'm glad to announce a new release of NGINX Unit. This release includes a few internal routing improvements that simplify some configurations and a new isolation option for chrooting application processes called "rootfs". Changes with Unit 1.18.0 28 May 2020 *) Feature: the "rootfs" isolation option for changing root filesystem for an application. *) Feature: multiple "targets" in PHP applications. *) Feature: support for percent encoding in the "uri" and "arguments" matching options and in the "pass" option. Also, our official packages for the recently released Ubuntu 20.04 (Focal Fossa) are available now: - https://unit.nginx.org/installation/#ubuntu At least two of the features in this release deserve special attention. Changing The Root Filesystem ---------------------------- Security is our top priority, so let's look closer at the "rootfs" option first. The coolest thing about it is that it's not just a simple chroot() system call as some may expect. It's not a secret that chroot() is not intended for security purposes, and there's plenty of ways for an attacker to get out of the chrooted directory (just check "man 2 chroot"). That's why on modern systems Unit can use pivot_root() with the "mount" namespace isolation enabled, which is way more secure and pretty similar to putting your application in an individual container. Also, our goal is to make any security option as easy to use as possible. In this case, Unit automatically tries to mount all the necessary language-specific dependencies inside a new root, so you won't need to care about them. Currently, this capability works for selected languages only, but the support will be extended in the next releases. For more information and examples of "rootfs" usage, check the documentation: - https://unit.nginx.org/configuration/#process-isolation Now to the second feature... Multiple PHP application "targets" ---------------------------------- The other major update in this release is called "targets", aiming to simplify configuration for many PHP applications. Perhaps, it is best illustrated by an example: WordPress. This is one of many applications that use two different addressing schemes: 1. Most user requests are handled by index.php regardless of the actual request URI. 2. Administration interface and some components rely on direct requests to specific .php scripts named in the URI. Earlier, users had to configure two Unit applications to handle this disparity: { "wp_index": { "type": "php", "user": "wp_user", "group": "wp_user", "root": "/path/to/wordpress/", "script": "index.php" }, "wp_direct": { "type": "php", "user": "wp_user", "group": "wp_user", "root": "/path/to/wordpress/" } } The first app directly executes the .php scripts named by the URI, whereas the second one passes all requests to index.php. Now, you can use "targets" instead: { "wp": { "type": "php", "user": "wp_user", "group": "wp_user", "targets": { "index": { "root": "/path/to/wordpress/", "script": "index.php" }, "direct": { "root": "/path/to/wordpress/" } } } } The complete example is available in our WordPress howto: - https://unit.nginx.org/howto/wordpress/ You can configure as many "targets" in one PHP application as you want, routing requests between them using various sophisticated request matching rules. Check our website to know more about the new option: - https://unit.nginx.org/configuration/#targets To learn more about request matching rules: - https://unit.nginx.org/configuration/#condition-matching Finally, see here for more howtos: - https://unit.nginx.org/howto/ We have plenty of them, covering many popular web applications and frameworks, but if your favorite one is still missing, let us know by opening a ticket here: - https://github.com/nginx/unit-docs/issues To keep the finger on the pulse, refer to our further plans in the roadmap here: - https://github.com/orgs/nginx/projects/1 Stay tuned! wbr, Valentin V. Bartenev From lhmwzy at 126.com Fri May 29 06:20:28 2020 From: lhmwzy at 126.com (lhmwzy) Date: Fri, 29 May 2020 14:20:28 +0800 (CST) Subject: 1.18.0 can't build under DragonFlyBSD Message-ID: <688a8527.3bd2.1725f16cb80.Coremail.lhmwzy@126.com> #uname -a: DragonFly 5.8-RELEASE DragonFly v5.8.0.4.g1c9a5-RELEASE #0: Tue Mar 17 22:03:07 CST 2020 root at xxx.com:/usr/obj/usr/src/sys/lhmwzy x86_64 #./configure --prefix=/usr/local/nginxunit #make ....... cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_response.o -MMD -MF build/src/nxt_http_response.dep -MT build/src/nxt_http_response.o src/nxt_http_response.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_error.o -MMD -MF build/src/nxt_http_error.dep -MT build/src/nxt_http_error.o src/nxt_http_error.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_route.o -MMD -MF build/src/nxt_http_route.dep -MT build/src/nxt_http_route.o src/nxt_http_route.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_route_addr.o -MMD -MF build/src/nxt_http_route_addr.dep -MT build/src/nxt_http_route_addr.o src/nxt_http_route_addr.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_return.o -MMD -MF build/src/nxt_http_return.dep -MT build/src/nxt_http_return.o src/nxt_http_return.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_static.o -MMD -MF build/src/nxt_http_static.dep -MT build/src/nxt_http_static.o src/nxt_http_static.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_proxy.o -MMD -MF build/src/nxt_http_proxy.dep -MT build/src/nxt_http_proxy.o src/nxt_http_proxy.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_application.o -MMD -MF build/src/nxt_application.dep -MT build/src/nxt_application.o src/nxt_application.c src/nxt_application.c: In function 'nxt_app_prefork': src/nxt_application.c:481:29: error: variable 'lang' set but not used [-Werror=unused-but-set-variable] nxt_app_lang_module_t *lang; ^~~~ src/nxt_application.c:477:39: error: variable 'cap_chroot' set but not used [-Werror=unused-but-set-variable] nxt_int_t cap_setid, cap_chroot; ^~~~~~~~~~ cc1: all warnings being treated as errors *** Error code 1 Stop. make: stopped in /home/lhm/unit also,can't config with python # ll /usr/local/lib/python3.6/config-3.6m/python-config.py -r-xr-xr-x 1 root wheel 2.0K 18-Mar-2020 21:35 /usr/local/lib/python3.6/config-3.6m/python-config.py # ./configure python --module=py36 --config=/usr/local/lib/python3.6/config-3.6m/python-config.py configuring Python module checking for Python ... found checking for Python version ... 3.6.9 auto/modules/python: /usr/local/bin//usr/local/lib/python3.6/config-3.6m/python: not found -------------- next part -------------- An HTML attachment was scrubbed... URL: From lhmwzy at 126.com Fri May 29 09:19:43 2020 From: lhmwzy at 126.com (lhmwzy) Date: Fri, 29 May 2020 17:19:43 +0800 (CST) Subject: 1.18.0 can't build under DragonFlyBSD In-Reply-To: <688a8527.3bd2.1725f16cb80.Coremail.lhmwzy@126.com> References: <688a8527.3bd2.1725f16cb80.Coremail.lhmwzy@126.com> Message-ID: #/configure --prefix=/usr/local/nginxunit output: ./configure --prefix=/usr/local/nginxunit configuring for DragonFly 5.8-RELEASE x86_64 checking for C compiler: cc + using GNU C compiler + gcc version 8.3 [DragonFly] Release/2019-02-22 building an "echo" program checking for int size ... 4 checking for long size ... 8 checking for long long size ... 8 checking for void * size ... 8 checking for size_t size ... 8 checking for off_t size ... 8 checking for time_t size ... 8 checking for C99 variadic macro ... found checking for GCC __builtin_expect() ... found checking for GCC __builtin_unreachable() ... found checking for GCC __builtin_prefetch() ... found checking for GCC __builtin_clz() ... found checking for GCC __builtin_popcount() ... found checking for GCC __attribute__ visibility ... found checking for GCC __attribute__ aligned ... found checking for GCC __attribute__ malloc ... found checking for GCC __attribute__ packed ... found checking for GCC builtin atomic operations ... found checking for posix_memalign() ... found checking for Linux malloc_usable_size() ... not found checking for FreeBSD malloc_usable_size() ... not found checking for MacOSX malloc_good_size() ... not found checking for alloca() ... found checking for Linux mallopt() ... not found checking for MAP_ANON ... found checking for MAP_POPULATE ... not found checking for MAP_PREFAULT_READ ... not found checking for shm_open() ... found checking for shm_open(SHM_ANON) ... not found checking for memfd_create() ... not found checking for Linux clock_gettime(CLOCK_REALTIME_COARSE) ... not found checking for FreeBSD clock_gettime(CLOCK_REALTIME_FAST) ... found checking for clock_gettime(CLOCK_REALTIME) ... found checking for Linux clock_gettime(CLOCK_MONOTONIC_COARSE) ... not found checking for FreeBSD clock_gettime(CLOCK_MONOTONIC_FAST) ... found checking for clock_gettime(CLOCK_MONOTONIC) ... found checking for HP-UX hg_gethrtime() ... not found checking for struct tm.tm_gmtoff ... found checking for altzone ... not found checking for localtime_r() ... found checking for pthread_yield() ... found checking for pthread spinlock ... found checking for pthread spinlock zero initial value ... found but is not working checking for sem_timedwait() ... found checking for __thread ... found checking for Linux epoll ... not found checking for kqueue ... found checking for kqueue EVFILT_USER ... found checking for Solaris event port ... not found checking for /dev/poll ... not found checking for AIX pollset ... not found checking for AF_INET6 ... found checking for sockaddr.sa_len ... found checking for struct sockaddr size ... 16 checking for struct sockaddr_in size ... 16 checking for struct sockaddr_in6 size ... 28 checking for struct sockaddr_un size ... 106 checking for struct sockaddr_storage size ... 128 checking for socketpair(AF_UNIX, SOCK_SEQPACKET) ... found checking for struct msghdr.msg_control ... found checking for sys/filio.h ... found checking for ioctl(FIONBIO) ... found checking for socket(SOCK_NONBLOCK) ... found checking for accept4() ... found checking for Linux sendfile() ... not found checking for FreeBSD sendfile() ... found checking for posix_fadvise() ... found checking for fcntl(F_READAHEAD) ... not found checking for fcntl(F_RDAHEAD) ... not found checking for getrandom() ... found checking for ucontext ... found checking for dlopen() ... found checking for posix_spawn() ... found checking for setproctitle() ... found checking for getgrouplist() ... found checking for clone(2) ... not found checking for Linux pivot_root() ... not found checking for prctl(PR_SET_NO_NEW_PRIVS) ... not found checking for Linux mount() ... not found checking for Bind mount() ... not found checking for FreeBSD nmount() ... not found checking for Linux umount2() ... not found checking for unmount() ... found checking for Linux capability ... not found creating build/Makefile Unit configuration summary: bin directory: ............. "/usr/local/nginxunit/bin" sbin directory: ............ "/usr/local/nginxunit/sbin" lib directory: ............. "/usr/local/nginxunit/lib" include directory: ......... "/usr/local/nginxunit/include" modules directory: ......... "/usr/local/nginxunit/modules" state directory: ........... "/usr/local/nginxunit/state" tmp directory: ............. "/usr/local/nginxunit/tmp" pid file: .................. "/usr/local/nginxunit/unit.pid" log file: .................. "/usr/local/nginxunit/unit.log" control API socket: ........ "unix:/usr/local/nginxunit/control.unit.sock" non-privileged user: ....... "nobody" non-privileged group: ...... "" IPv6 support: .............. YES Unix domain sockets support: YES TLS support: ............... NO process isolation: ......... NO debug logging: ............. NO At 2020-05-29 14:20:28, "lhmwzy" wrote: #uname -a: DragonFly 5.8-RELEASE DragonFly v5.8.0.4.g1c9a5-RELEASE #0: Tue Mar 17 22:03:07 CST 2020 root at xxx.com:/usr/obj/usr/src/sys/lhmwzy x86_64 #./configure --prefix=/usr/local/nginxunit #make ....... cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_response.o -MMD -MF build/src/nxt_http_response.dep -MT build/src/nxt_http_response.o src/nxt_http_response.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_error.o -MMD -MF build/src/nxt_http_error.dep -MT build/src/nxt_http_error.o src/nxt_http_error.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_route.o -MMD -MF build/src/nxt_http_route.dep -MT build/src/nxt_http_route.o src/nxt_http_route.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_route_addr.o -MMD -MF build/src/nxt_http_route_addr.dep -MT build/src/nxt_http_route_addr.o src/nxt_http_route_addr.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_return.o -MMD -MF build/src/nxt_http_return.dep -MT build/src/nxt_http_return.o src/nxt_http_return.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_static.o -MMD -MF build/src/nxt_http_static.dep -MT build/src/nxt_http_static.o src/nxt_http_static.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_proxy.o -MMD -MF build/src/nxt_http_proxy.dep -MT build/src/nxt_http_proxy.o src/nxt_http_proxy.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_application.o -MMD -MF build/src/nxt_application.dep -MT build/src/nxt_application.o src/nxt_application.c src/nxt_application.c: In function 'nxt_app_prefork': src/nxt_application.c:481:29: error: variable 'lang' set but not used [-Werror=unused-but-set-variable] nxt_app_lang_module_t *lang; ^~~~ src/nxt_application.c:477:39: error: variable 'cap_chroot' set but not used [-Werror=unused-but-set-variable] nxt_int_t cap_setid, cap_chroot; ^~~~~~~~~~ cc1: all warnings being treated as errors *** Error code 1 Stop. make: stopped in /home/lhm/unit also,can't config with python # ll /usr/local/lib/python3.6/config-3.6m/python-config.py -r-xr-xr-x 1 root wheel 2.0K 18-Mar-2020 21:35 /usr/local/lib/python3.6/config-3.6m/python-config.py # ./configure python --module=py36 --config=/usr/local/lib/python3.6/config-3.6m/python-config.py configuring Python module checking for Python ... found checking for Python version ... 3.6.9 auto/modules/python: /usr/local/bin//usr/local/lib/python3.6/config-3.6m/python: not found -------------- next part -------------- An HTML attachment was scrubbed... URL: From lhmwzy at 126.com Fri May 29 09:21:28 2020 From: lhmwzy at 126.com (lhmwzy) Date: Fri, 29 May 2020 17:21:28 +0800 (CST) Subject: 1.18.0 can't build under DragonFlyBSD In-Reply-To: <688a8527.3bd2.1725f16cb80.Coremail.lhmwzy@126.com> References: <688a8527.3bd2.1725f16cb80.Coremail.lhmwzy@126.com> Message-ID: python module can be configured like: # ./configure python --module=py36 --config=config-3.6m this is ok now. At 2020-05-29 14:20:28, "lhmwzy" wrote: #uname -a: DragonFly 5.8-RELEASE DragonFly v5.8.0.4.g1c9a5-RELEASE #0: Tue Mar 17 22:03:07 CST 2020 root at xxx.com:/usr/obj/usr/src/sys/lhmwzy x86_64 #./configure --prefix=/usr/local/nginxunit #make ....... cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_response.o -MMD -MF build/src/nxt_http_response.dep -MT build/src/nxt_http_response.o src/nxt_http_response.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_error.o -MMD -MF build/src/nxt_http_error.dep -MT build/src/nxt_http_error.o src/nxt_http_error.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_route.o -MMD -MF build/src/nxt_http_route.dep -MT build/src/nxt_http_route.o src/nxt_http_route.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_route_addr.o -MMD -MF build/src/nxt_http_route_addr.dep -MT build/src/nxt_http_route_addr.o src/nxt_http_route_addr.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_return.o -MMD -MF build/src/nxt_http_return.dep -MT build/src/nxt_http_return.o src/nxt_http_return.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_static.o -MMD -MF build/src/nxt_http_static.dep -MT build/src/nxt_http_static.o src/nxt_http_static.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_http_proxy.o -MMD -MF build/src/nxt_http_proxy.dep -MT build/src/nxt_http_proxy.o src/nxt_http_proxy.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -I src -I build -o build/src/nxt_application.o -MMD -MF build/src/nxt_application.dep -MT build/src/nxt_application.o src/nxt_application.c src/nxt_application.c: In function 'nxt_app_prefork': src/nxt_application.c:481:29: error: variable 'lang' set but not used [-Werror=unused-but-set-variable] nxt_app_lang_module_t *lang; ^~~~ src/nxt_application.c:477:39: error: variable 'cap_chroot' set but not used [-Werror=unused-but-set-variable] nxt_int_t cap_setid, cap_chroot; ^~~~~~~~~~ cc1: all warnings being treated as errors *** Error code 1 Stop. make: stopped in /home/lhm/unit also,can't config with python # ll /usr/local/lib/python3.6/config-3.6m/python-config.py -r-xr-xr-x 1 root wheel 2.0K 18-Mar-2020 21:35 /usr/local/lib/python3.6/config-3.6m/python-config.py # ./configure python --module=py36 --config=/usr/local/lib/python3.6/config-3.6m/python-config.py configuring Python module checking for Python ... found checking for Python version ... 3.6.9 auto/modules/python: /usr/local/bin//usr/local/lib/python3.6/config-3.6m/python: not found -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.nateldemoura at f5.com Fri May 29 09:25:10 2020 From: t.nateldemoura at f5.com (Tiago de Bem) Date: Fri, 29 May 2020 09:25:10 +0000 Subject: 1.18.0 can't build under DragonFlyBSD In-Reply-To: References: <688a8527.3bd2.1725f16cb80.Coremail.lhmwzy@126.com> Message-ID: Hi, We have patches in review for fixing these issues. Thanks for reporting! -- i4k From t.nateldemoura at f5.com Fri May 29 10:07:41 2020 From: t.nateldemoura at f5.com (Tiago de Bem) Date: Fri, 29 May 2020 10:07:41 +0000 Subject: 1.18.0 can't build under DragonFlyBSD In-Reply-To: References: <688a8527.3bd2.1725f16cb80.Coremail.lhmwzy@126.com> Message-ID: Hi lhmwzy, Could you apply the attached patch and confirm it fix your build? Thank you. -- i4k -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: fix-rootfs-build-bsd.patch.txt URL: