in case you haven't docker installed, please follow this instruction https://docs.docker.com/engine/install/ubuntu/
Create daemon.json file in /etc/docker, with content:
{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
| 'use strict'; | |
| import fastify, { FastifyReply, FastifyRequest, RawReplyDefaultExpression, RawServerBase, RequestGenericInterface } from 'fastify'; | |
| import proxy from '@fastify/http-proxy'; | |
| const server = fastify(); | |
| server.register(proxy, { | |
| upstream: 'http://proxied.tld', | |
| prefix: '/proxied', |
in case you haven't docker installed, please follow this instruction https://docs.docker.com/engine/install/ubuntu/
Create daemon.json file in /etc/docker, with content:
{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
| 'use strict'; | |
| import fs from 'node:fs/promises'; | |
| import path from 'node:path'; | |
| import { Parser, fromFile } from '@asyncapi/parser'; | |
| import { PropertyKeyContext, TypeScriptGenerator } from '@asyncapi/modelina'; | |
| /** | |
| * Modelina by default transforms payload properties' names into `camelCase`. This custom sctript | |
| * retirns the property names as-is keeping your `snake_case` naming in place. |