You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help="The name of the variable that contains the [bold]FastAPI[/bold] app in the imported module or package. If not provided, it is detected automatically."
128
130
),
129
131
] =None,
132
+
proxy_headers: Annotated[
133
+
bool,
134
+
typer.Option(
135
+
help="Enable/Disable X-Forwarded-Proto, X-Forwarded-For, X-Forwarded-Port to populate remote address info."
136
+
),
137
+
] =True,
130
138
) ->Any:
131
139
"""
132
140
Run a [bold]FastAPI[/bold] app in [yellow]development[/yellow] mode. 🧪
@@ -161,6 +169,7 @@ def dev(
161
169
root_path=root_path,
162
170
app=app,
163
171
command="dev",
172
+
proxy_headers=proxy_headers,
164
173
)
165
174
166
175
@@ -203,6 +212,12 @@ def run(
203
212
help="The name of the variable that contains the [bold]FastAPI[/bold] app in the imported module or package. If not provided, it is detected automatically."
204
213
),
205
214
] =None,
215
+
proxy_headers: Annotated[
216
+
bool,
217
+
typer.Option(
218
+
help="Enable/Disable X-Forwarded-Proto, X-Forwarded-For, X-Forwarded-Port to populate remote address info."
219
+
),
220
+
] =True,
206
221
) ->Any:
207
222
"""
208
223
Run a [bold]FastAPI[/bold] app in [green]production[/green] mode. 🚀
0 commit comments