Commit 2a9432d
Add CLI flags to force http scheme in generated hrefs
Summary:
Add two new CLI flags to the LFS server:
- `--force-http-for-host`: hostnames for which generated hrefs should use http instead of https
- `--force-http-for-header`: header names whose presence (with value "1") forces http scheme
This is needed for x2p/c2p proxy scenarios where the downstream client expects plain http URLs.
Reviewed By: giorgidze
Differential Revision: D95236086
fbshipit-source-id: 707162a4ecb3349261adeddc0533b9a8cde2895d1 parent 3a0bea9 commit 2a9432d
3 files changed
Lines changed: 269 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
| 934 | + | |
| 935 | + | |
934 | 936 | | |
935 | 937 | | |
936 | 938 | | |
937 | 939 | | |
938 | 940 | | |
939 | 941 | | |
| 942 | + | |
940 | 943 | | |
941 | 944 | | |
942 | 945 | | |
| |||
0 commit comments