Missing custom config server (trust proxy) for fastify-cli
See original GitHub issuePrerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
In Fastify you can use
import Fastify from 'fastify'
const app = Fastify({ trustProxy: true })
https://www.fastify.io/docs/latest/Reference/Server/#trustproxy
But Fastify-cli don’t have way to custom any server config.
Motivation
Easier to custom config server config.
Make Fastify-cli can trust proxy by nginx and many…
Example
fastify-cli TS
-c dist/customOP.js
dev": "tsc && concurrently -k -p \"[{name}]\" -n \"TypeScript,App\" -c \"yellow.bold,cyan.bold\" \"tsc -w\" \"fastify start --ignore-watch=.ts$ -w -l info -p 8081 -P -C dist/customOP.js dist/app.js\""
Issue Analytics
- State:
- Created a year ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Config File Option · Issue #401 · fastify/fastify-cli - GitHub
Is there a workaround for this? I am new to fastify, and I'd like to set trustProxy to true, but I have no...
Read more >Server - Fastify
An object used to configure the server's listening socket for TLS. ... number : Trust the nth hop from the front-facing proxy server...
Read more >fastify-cli - npm
Start using fastify-cli in your project by running `npm i fastify-cli`. ... If you want to use custom options for the server creation, ......
Read more >Fastify CLI decorators undefined - node.js - Stack Overflow
The issue is that your application diagram looks like this: and when you write const app = await build(t) the app variable points...
Read more >fastify-curl - npm Package Health Analysis - Snyk
All security vulnerabilities belong to production dependencies of direct and indirect packages. License: ISC. Security Policy: No.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There is no option call
ignoreTrailingSlashes
infastify
. OnlyignoreTrailingSlash
.fixed: https://www.npmjs.com/package/fastify-cli/v/4.4.0
something went wrong during the latest release @mcollina