Skip to content

picoded/http-simple-proxy: passing "Host:" header #3

@stephenfrank

Description

@stephenfrank

Hi,

I've been using this container image in a few instances since it fills my needs for a "http-simple-proxy" 😋

I found that I really needed the original "Host:" header forwarded I've done so by adding an extra line of configuration to my version of the container:

        echo 'echo "      proxy_pass_request_headers    on;"                                     >> default.conf' >> /entrypoint/primer.sh && \
        echo 'echo "      proxy_set_header     X-Forwarded-For \$proxy_add_x_forwarded_for;"     >> default.conf' >> /entrypoint/primer.sh && \
        echo 'echo "      proxy_set_header     Host \$host;"                                     >> default.conf' >> /entrypoint/primer.sh && \

I thought it would be good to share and you could see if there is a way to add this as a configurable option or maybe just in the base image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions