Lego http fallback #4

Closed
opened 2024-08-01 14:04:08 +00:00 by jadyn · 0 comments
Member

Add something like this to base/roles/lego/files/:

if [ -n "$LEGO_HTTP_FALLBACK_PORT" ]; then
  nc -z 127.0.0.1 LEGO_HTTP_PORT;
  if [ $? -ne 0 ]; then
      LEGO_HTTP_PORT=$LEGO_HTTP_FALLBACK_PORT
  fi
fi

This will add the option to determine if another program (i.e. a reverse-proxy) is using the http port, then changing it to the fallback so that a reverse-proxy can pass the challenge data along.

I'm unsure about the variable names as I couldn't find any documentation on that.

Add something like this to `base/roles/lego/files/`: ```bash if [ -n "$LEGO_HTTP_FALLBACK_PORT" ]; then nc -z 127.0.0.1 LEGO_HTTP_PORT; if [ $? -ne 0 ]; then LEGO_HTTP_PORT=$LEGO_HTTP_FALLBACK_PORT fi fi ``` This will add the option to determine if another program (i.e. a reverse-proxy) is using the http port, then changing it to the fallback so that a reverse-proxy can pass the challenge data along. I'm unsure about the variable names as I couldn't find any documentation on that.
jadyn closed this issue 2024-08-31 15:34:04 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: finallycoffee/base#4
No description provided.