|
| 1 | +package flags |
| 2 | + |
| 3 | +const ( |
| 4 | + // HaConnections specifies how many connections to make to the edge |
| 5 | + HaConnections = "ha-connections" |
| 6 | + |
| 7 | + // SshPort is the port on localhost the cloudflared ssh server will run on |
| 8 | + SshPort = "local-ssh-port" |
| 9 | + |
| 10 | + // SshIdleTimeout defines the duration a SSH session can remain idle before being closed |
| 11 | + SshIdleTimeout = "ssh-idle-timeout" |
| 12 | + |
| 13 | + // SshMaxTimeout defines the max duration a SSH session can remain open for |
| 14 | + SshMaxTimeout = "ssh-max-timeout" |
| 15 | + |
| 16 | + // SshLogUploaderBucketName is the bucket name to use for the SSH log uploader |
| 17 | + SshLogUploaderBucketName = "bucket-name" |
| 18 | + |
| 19 | + // SshLogUploaderRegionName is the AWS region name to use for the SSH log uploader |
| 20 | + SshLogUploaderRegionName = "region-name" |
| 21 | + |
| 22 | + // SshLogUploaderSecretID is the Secret id of SSH log uploader |
| 23 | + SshLogUploaderSecretID = "secret-id" |
| 24 | + |
| 25 | + // SshLogUploaderAccessKeyID is the Access key id of SSH log uploader |
| 26 | + SshLogUploaderAccessKeyID = "access-key-id" |
| 27 | + |
| 28 | + // SshLogUploaderSessionTokenID is the Session token of SSH log uploader |
| 29 | + SshLogUploaderSessionTokenID = "session-token" |
| 30 | + |
| 31 | + // SshLogUploaderS3URL is the S3 URL of SSH log uploader (e.g. don't use AWS s3 and use google storage bucket instead) |
| 32 | + SshLogUploaderS3URL = "s3-url-host" |
| 33 | + |
| 34 | + // HostKeyPath is the path of the dir to save SSH host keys too |
| 35 | + HostKeyPath = "host-key-path" |
| 36 | + |
| 37 | + // RpcTimeout is how long to wait for a Capnp RPC request to the edge |
| 38 | + RpcTimeout = "rpc-timeout" |
| 39 | + |
| 40 | + // WriteStreamTimeout sets if we should have a timeout when writing data to a stream towards the destination (edge/origin). |
| 41 | + WriteStreamTimeout = "write-stream-timeout" |
| 42 | + |
| 43 | + // QuicDisablePathMTUDiscovery sets if QUIC should not perform PTMU discovery and use a smaller (safe) packet size. |
| 44 | + // Packets will then be at most 1252 (IPv4) / 1232 (IPv6) bytes in size. |
| 45 | + // Note that this may result in packet drops for UDP proxying, since we expect being able to send at least 1280 bytes of inner packets. |
| 46 | + QuicDisablePathMTUDiscovery = "quic-disable-pmtu-discovery" |
| 47 | + |
| 48 | + // QuicConnLevelFlowControlLimit controls the max flow control limit allocated for a QUIC connection. This controls how much data is the |
| 49 | + // receiver willing to buffer. Once the limit is reached, the sender will send a DATA_BLOCKED frame to indicate it has more data to write, |
| 50 | + // but it's blocked by flow control |
| 51 | + QuicConnLevelFlowControlLimit = "quic-connection-level-flow-control-limit" |
| 52 | + |
| 53 | + // QuicStreamLevelFlowControlLimit is similar to quicConnLevelFlowControlLimit but for each QUIC stream. When the sender is blocked, |
| 54 | + // it will send a STREAM_DATA_BLOCKED frame |
| 55 | + QuicStreamLevelFlowControlLimit = "quic-stream-level-flow-control-limit" |
| 56 | + |
| 57 | + // Ui is to enable launching cloudflared in interactive UI mode |
| 58 | + Ui = "ui" |
| 59 | + |
| 60 | + // ConnectorLabel is the command line flag to give a meaningful label to a specific connector |
| 61 | + ConnectorLabel = "label" |
| 62 | + |
| 63 | + // MaxActiveFlows is the command line flag to set the maximum number of flows that cloudflared can be processing at the same time |
| 64 | + MaxActiveFlows = "max-active-flows" |
| 65 | + |
| 66 | + // Tag is the command line flag to set custom tags used to identify this tunnel via added HTTP request headers to the origin |
| 67 | + Tag = "tag" |
| 68 | + |
| 69 | + // Protocol is the command line flag to set the protocol to use to connect to the Cloudflare Edge |
| 70 | + Protocol = "protocol" |
| 71 | + |
| 72 | + // PostQuantum is the command line flag to force the connection to Cloudflare Edge to use Post Quantum cryptography |
| 73 | + PostQuantum = "post-quantum" |
| 74 | + |
| 75 | + // Features is the command line flag to opt into various features that are still being developed or tested |
| 76 | + Features = "features" |
| 77 | + |
| 78 | + // EdgeIpVersion is the command line flag to set the Cloudflare Edge IP address version to connect with |
| 79 | + EdgeIpVersion = "edge-ip-version" |
| 80 | + |
| 81 | + // EdgeBindAddress is the command line flag to bind to IP address for outgoing connections to Cloudflare Edge |
| 82 | + EdgeBindAddress = "edge-bind-address" |
| 83 | + |
| 84 | + // Force is the command line flag to specify if you wish to force an action |
| 85 | + Force = "force" |
| 86 | + |
| 87 | + // Edge is the command line flag to set the address of the Cloudflare tunnel server. Only works in Cloudflare's internal testing environment |
| 88 | + Edge = "edge" |
| 89 | + |
| 90 | + // Region is the command line flag to set the Cloudflare Edge region to connect to |
| 91 | + Region = "region" |
| 92 | + |
| 93 | + // IsAutoUpdated is the command line flag to signal the new process that cloudflared has been autoupdated |
| 94 | + IsAutoUpdated = "is-autoupdated" |
| 95 | + |
| 96 | + // LBPool is the command line flag to set the name of the load balancing pool to add this origin to |
| 97 | + LBPool = "lb-pool" |
| 98 | + |
| 99 | + // Retries is the command line flag to set the maximum number of retries for connection/protocol errors |
| 100 | + Retries = "retries" |
| 101 | + |
| 102 | + // MaxEdgeAddrRetries is the command line flag to set the maximum number of times to retry on edge addrs before falling back to a lower protocol |
| 103 | + MaxEdgeAddrRetries = "max-edge-addr-retries" |
| 104 | + |
| 105 | + // GracePeriod is the command line flag to set the maximum amount of time that cloudflared waits to shut down if it is still serving requests |
| 106 | + GracePeriod = "grace-period" |
| 107 | + |
| 108 | + // ICMPV4Src is the command line flag to set the source address and the interface name to send/receive ICMPv4 messages |
| 109 | + ICMPV4Src = "icmpv4-src" |
| 110 | + |
| 111 | + // ICMPV6Src is the command line flag to set the source address and the interface name to send/receive ICMPv6 messages |
| 112 | + ICMPV6Src = "icmpv6-src" |
| 113 | + |
| 114 | + // ProxyDns is the command line flag to run DNS server over HTTPS |
| 115 | + ProxyDns = "proxy-dns" |
| 116 | + |
| 117 | + // Name is the command line to set the name of the tunnel |
| 118 | + Name = "name" |
| 119 | + |
| 120 | + // AutoUpdateFreq is the command line for setting the frequency that cloudflared checks for updates |
| 121 | + AutoUpdateFreq = "autoupdate-freq" |
| 122 | + |
| 123 | + // NoAutoUpdate is the command line flag to disable cloudflared from checking for updates |
| 124 | + NoAutoUpdate = "no-autoupdate" |
| 125 | + |
| 126 | + // LogLevel is the command line flag for the cloudflared logging level |
| 127 | + LogLevel = "loglevel" |
| 128 | + |
| 129 | + // LogLevelSSH is the command line flag for the cloudflared ssh logging level |
| 130 | + LogLevelSSH = "log-level" |
| 131 | + |
| 132 | + // TransportLogLevel is the command line flag for the transport logging level |
| 133 | + TransportLogLevel = "transport-loglevel" |
| 134 | + |
| 135 | + // LogFile is the command line flag to define the file where application logs will be stored |
| 136 | + LogFile = "logfile" |
| 137 | + |
| 138 | + // LogDirectory is the command line flag to define the directory where application logs will be stored. |
| 139 | + LogDirectory = "log-directory" |
| 140 | + |
| 141 | + // TraceOutput is the command line flag to set the name of trace output file |
| 142 | + TraceOutput = "trace-output" |
| 143 | + |
| 144 | + // OriginCert is the command line flag to define the path for the origin certificate used by cloudflared |
| 145 | + OriginCert = "origincert" |
| 146 | + |
| 147 | + // Metrics is the command line flag to define the address of the metrics server |
| 148 | + Metrics = "metrics" |
| 149 | + |
| 150 | + // MetricsUpdateFreq is the command line flag to define how frequently tunnel metrics are updated |
| 151 | + MetricsUpdateFreq = "metrics-update-freq" |
| 152 | +) |
0 commit comments