skip to Main Content

how to add lua-cjson to my nginx lua container?

I am using this docker-compose to create a Lua supported Nginx: version: '3.9' services: nginx: container_name: local_nginx image: fabiocicerchia/nginx-lua environment: - REDIS_SERVER=172.26.0.1 ports: - 8089:80 - 8053:8053 volumes: - /home/navid/lua_project/nginx/nginx.conf:/etc/nginx/nginx.conf - /home/navid/lua_project/nginx/www:/usr/share/nginx/html - /home/navid/lua_project/lib/resty/redis.lua:/usr/local/share/luajit-2.0.4/resty/redis.lua - /home/navid/lua_project/lib/resty/kafka:/usr/local/share/lua/5.1/resty/kafka extra_hosts: - host.docker.internal:host-gateway and…

VIEW QUESTION

NGINX add two variable/arguments numbers

I'm trying to set up an Nginx, where I want to add two numbers together. server { server_name "~^pr-(d*).review-apps.example.com$"; location / { set $port 50000+$1; proxy_pass "http://localhost:$port/test"; } } But this doesn't work 🙄. (Result is in string. For example…

VIEW QUESTION

How to host multiple website with same domain but different path ex: domain.fr/siteA, domain.fr/siteB, /siteC with docker and nginx reverse proxy

Just wondering what is the difference between import { getContent } from '@/assets/welcome-content.js' import Navigation from '@/components/Navigation' and import { getContent } from '~/assets/welcome-content.js' import Navigation from '~/components/Navigation' Both seems to work but when I add the lines below in…

VIEW QUESTION
Back To Top
Search