Spike Curtis
71f87d054f
fix: accept legacy redirect HTTP environment variables ( #10748 )
...
> Can someone help me understand the differences between these env variables:
>
> CODER_REDIRECT_TO_ACCESS_URL
> CODER_TLS_REDIRECT_HTTP_TO_HTTPS
> CODER_TLS_REDIRECT_HTTP
Oh man, what a mess. It looks like `CODER_TLS_REDIRECT_HTTP ` appears in our config docs. Maybe that was the initial name for the environment variable?
At some point, both the flag and the environment variable were `--tls-redirect-http-to-https` and `CODER_TLS_REDIRECT_HTTP_TO_HTTPS`. `CODER_TLS_REDIRECT_HTTP` did nothing.
However, then we introduced `CODER_REDIRECT_TO_ACCESS_URL`, we put in some deprecation code that was maybe fat-fingered such that we accept the environment variable `CODER_TLS_REDIRECT_HTTP` but the flag `--tls-redirect-http-to-https`. Our docs still refer to `CODER_TLS_REDIRECT_HTTP` at https://coder.com/docs/v2/latest/admin/configure#address
So, I think what we gotta do is still accept `CODER_TLS_REDIRECT_HTTP` since it was working and in an example doc, but also fix the deprecation code to accept `CODER_TLS_REDIRECT_HTTP_TO_HTTPS` environment variable.
2023-11-17 15:09:29 +04:00
..
2023-11-17 15:09:29 +04:00
2023-07-27 09:33:43 +01:00
2023-11-14 22:56:27 +04:00
2023-11-09 12:16:43 +00:00
2023-11-14 16:38:34 +04:00
2023-08-18 18:55:43 +00:00
2023-09-01 15:41:22 +00:00
2023-09-04 21:42:45 +03:00
2023-11-13 14:14:43 +00:00
2023-05-23 17:14:05 +02:00
2023-11-14 22:56:27 +04:00
2023-11-14 22:56:27 +04:00
2023-11-02 14:41:34 -05:00
2023-11-02 14:41:34 -05:00
2023-06-22 17:08:12 -05:00
2023-06-22 17:08:12 -05:00
2023-11-03 12:22:32 -05:00
2023-06-22 17:08:12 -05:00
2023-08-27 14:46:44 -05:00
2023-11-09 19:22:47 +01:00
2023-11-09 19:22:47 +01:00
2023-10-10 11:14:20 +01:00
2023-09-07 16:28:22 -05:00
2023-10-24 12:00:04 +03:00
2023-10-24 12:00:04 +03:00
2023-10-02 10:51:35 -06:00
2023-10-03 15:13:04 +01:00
2023-11-07 16:41:55 +00:00
2023-11-14 22:56:27 +04:00
2023-09-29 16:50:23 -05:00
2023-10-09 23:02:16 -05:00
2023-11-13 15:14:42 +04:00
2023-10-09 23:04:35 +00:00
2023-11-13 15:14:42 +04:00
2023-11-03 12:22:32 -05:00
2023-11-13 15:14:42 +04:00
2023-09-14 19:48:29 -05:00
2023-09-08 18:21:33 +00:00
2023-11-03 12:22:32 -05:00
2023-11-10 13:51:49 +00:00
2023-09-20 12:41:59 -04:00
2023-09-20 12:41:59 -04:00
2023-08-18 18:55:43 +00:00
2023-08-18 18:55:43 +00:00
2023-09-04 21:41:50 +03:00
2023-09-04 21:41:50 +03:00
2023-08-09 13:00:25 +02:00
2023-11-02 14:41:34 -05:00
2023-11-09 19:22:47 +01:00
2023-09-26 12:05:19 +01:00
2023-11-14 22:56:27 +04:00
2022-10-03 11:58:43 +03:00
2023-11-03 12:22:32 -05:00
2023-11-14 22:56:27 +04:00
2023-08-18 18:55:43 +00:00
2023-09-07 16:28:22 -05:00
2023-10-03 16:39:39 +10:00
2023-10-10 11:14:20 +01:00
2023-09-07 16:28:22 -05:00
2023-09-04 19:38:53 +03:00
2023-08-18 18:55:43 +00:00
2023-09-07 16:28:22 -05:00
2023-11-02 14:41:34 -05:00
2023-11-02 14:41:34 -05:00
2023-08-07 22:23:00 -05:00
2023-11-03 12:22:32 -05:00
2023-11-14 22:56:27 +04:00
2022-06-16 18:24:10 +01:00
2023-11-10 13:51:49 +00:00
2023-11-10 13:51:49 +00:00
2023-09-01 16:50:12 +00:00
2023-11-14 22:56:27 +04:00
2023-11-17 15:09:29 +04:00
2023-09-04 19:38:53 +03:00
2023-11-06 23:04:07 +10:00
2023-11-17 15:09:29 +04:00
2023-10-10 11:14:20 +01:00
2023-08-18 18:55:43 +00:00
2022-11-16 16:34:06 -06:00
2022-11-16 16:34:06 -06:00
2023-11-14 22:56:27 +04:00
2023-11-14 22:56:27 +04:00
2023-11-17 15:09:29 +04:00
2023-07-20 12:05:39 +02:00
2023-11-17 12:43:20 +04:00
2023-07-20 12:05:39 +02:00
2023-11-17 12:43:20 +04:00
2023-11-02 14:41:34 -05:00
2023-11-02 14:41:34 -05:00
2023-08-18 18:55:43 +00:00
2023-08-18 18:55:43 +00:00
2023-10-10 11:14:20 +01:00
2023-08-18 18:55:43 +00:00
2023-09-07 16:28:22 -05:00
2023-10-19 17:16:15 -05:00
2023-10-20 13:21:53 -05:00
2023-10-10 11:14:20 +01:00
2023-10-11 09:26:22 -05:00
2023-10-19 17:16:15 -05:00
2023-10-20 13:21:53 -05:00
2023-08-18 18:55:43 +00:00
2023-09-07 16:28:22 -05:00
2023-10-10 11:14:20 +01:00
2023-08-18 18:55:43 +00:00
2023-10-10 11:26:53 -05:00
2023-10-10 10:20:31 -05:00
2023-10-10 11:14:20 +01:00
2023-09-07 16:28:22 -05:00
2023-10-18 17:07:21 -05:00
2023-08-18 18:55:43 +00:00
2023-10-11 09:26:22 -05:00
2023-10-18 17:07:21 -05:00
2023-10-10 11:14:20 +01:00
2023-10-18 17:07:21 -05:00
2023-08-18 18:55:43 +00:00
2023-08-18 18:55:43 +00:00
2023-10-10 11:14:20 +01:00
2023-11-02 14:41:34 -05:00
2023-10-18 15:08:02 -05:00
2023-08-18 18:55:43 +00:00
2023-09-07 16:28:22 -05:00
2023-10-09 11:47:57 -05:00
2023-10-10 11:14:20 +01:00
2023-08-18 18:55:43 +00:00
2023-10-09 11:47:57 -05:00
2023-10-10 11:14:20 +01:00
2023-10-09 11:47:57 -05:00
2022-06-16 18:24:10 +01:00
2023-11-10 13:51:49 +00:00
2023-09-07 16:28:22 -05:00
2023-09-07 16:28:22 -05:00
2023-11-03 16:21:31 +00:00
2023-11-14 22:56:27 +04:00