Revert "Merge commit from fork"
This reverts commit 5512898463.
see https://github.com/misskey-dev/misskey/issues/16994
This commit is contained in:
parent
0d52145b2b
commit
e3d5b95672
|
|
@ -110,10 +110,10 @@ port: 3000
|
||||||
# Changes how the server interpret the origin IP of the request.
|
# Changes how the server interpret the origin IP of the request.
|
||||||
#
|
#
|
||||||
# Any format supported by Fastify is accepted.
|
# Any format supported by Fastify is accepted.
|
||||||
# Default: do not trust any proxies (i.e. trustProxy: false)
|
# Default: trust all proxies (i.e. trustProxy: true)
|
||||||
# See: https://fastify.dev/docs/latest/reference/server/#trustproxy
|
# See: https://fastify.dev/docs/latest/reference/server/#trustproxy
|
||||||
#
|
#
|
||||||
# trustProxy: false
|
# trustProxy: 1
|
||||||
|
|
||||||
# ┌──────────────────────────┐
|
# ┌──────────────────────────┐
|
||||||
#───┘ PostgreSQL configuration └────────────────────────────────
|
#───┘ PostgreSQL configuration └────────────────────────────────
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ export class ServerService implements OnApplicationShutdown {
|
||||||
@bindThis
|
@bindThis
|
||||||
public async launch(): Promise<void> {
|
public async launch(): Promise<void> {
|
||||||
const fastify = Fastify({
|
const fastify = Fastify({
|
||||||
trustProxy: this.config.trustProxy ?? false,
|
trustProxy: this.config.trustProxy ?? true,
|
||||||
logger: false,
|
logger: false,
|
||||||
});
|
});
|
||||||
this.#fastify = fastify;
|
this.#fastify = fastify;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue