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
"Server's public base URI (defaults to machine name)"
267
269
flagRunHostURI (\v flags -> flags { flagRunHostURI = v })
268
270
(reqArgFlag "NAME")
269
-
, option [] ["user-content-host"]
270
-
"Server's public user content host name (for untrusted content, defeating XSS style attacks)"
271
+
, option [] ["user-content-uri"]
272
+
"Server's public user content base URI (for untrusted content, defeating XSS style attacks)"
271
273
flagRunUserContentURI (\v flags -> flags { flagRunUserContentURI = v })
272
274
(reqArgFlag "NAME")
275
+
, option [] ["required-base-host-header"]
276
+
"Required host header value for incoming requests (potentially internal, e.g. if behind reverse proxy). Base means that it is _not_ for the user-content domain."
277
+
flagRunRequiredBaseHostHeader (\v flags -> flags { flagRunRequiredBaseHostHeader = v })
278
+
(reqArgFlag "NAME")
273
279
, optionStateDir
274
280
flagRunStateDir (\v flags -> flags { flagRunStateDir = v })
275
281
, optionStaticDir
@@ -313,7 +319,8 @@ runAction opts = do
313
319
port <- checkPortOpt defaults (flagToMaybe (flagRunPort opts))
314
320
ip <- checkIPOpt defaults (flagToMaybe (flagRunIP opts))
315
321
hosturi <- checkHostURI defaults (flagToMaybe (flagRunHostURI opts)) port
0 commit comments