feat(shared): reworked shared library
Shared library is now access using `@shared/module`
This commit is contained in:
parent
1bc33ab912
commit
37403d304a
56 changed files with 366 additions and 970 deletions
|
|
@ -10,6 +10,5 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|||
NGINX_RESOLVERS=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {if ($2 ~ ":") {print "["$2"]"} else {print $2}}' /etc/resolv.conf)
|
||||
# remove trailing space
|
||||
NGINX_RESOLVERS="${NGINX_RESOLVERS% }"
|
||||
echo "_${NGINX_RESOLVERS}_"
|
||||
|
||||
export NGINX_RESOLVERS
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ set -e
|
|||
|
||||
ME=$(basename "$0")
|
||||
|
||||
echo "_{$NGINX_LOCAL_RESOLVERS}_"
|
||||
entrypoint_log() {
|
||||
if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then
|
||||
echo "$@"
|
||||
|
|
|
|||
|
|
@ -6,13 +6,15 @@
|
|||
# By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/06/12 16:42:38 by maiboyer #+# #+# #
|
||||
# Updated: 2025/06/16 16:26:48 by maiboyer ### ########.fr #
|
||||
# Updated: 2025/06/16 21:21:16 by maiboyer ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
FROM nginx:stable-alpine
|
||||
|
||||
RUN mkdir -p /etc/nginx/ && \
|
||||
RUN \
|
||||
mkdir -p /volumes/ && \
|
||||
mkdir -p /etc/nginx/ && \
|
||||
mkdir -p /etc/ssl/certs && \
|
||||
mkdir -p /etc/ssl/private && \
|
||||
apk add openssl && \
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
location /api/icons {
|
||||
rewrite ^/api/icons/(.*) /$1 break;
|
||||
proxy_pass http://icons-service/$uri$is_args$args;
|
||||
location /api/icons/set/ {
|
||||
rewrite ^/api/icons/set/(.*) $1 break;
|
||||
proxy_pass http://icons-service/set/$uri;
|
||||
}
|
||||
|
||||
location /api/icons/get/ {
|
||||
rewrite ^/api/icons/get/(.*) /$1 break;
|
||||
root /volumes/icons;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue