Skip to content

add the RemoteIPHeader and mod remoteip to apache #20

Description

@redispade

I started using itflow and I use it behind a reverse proxy, or cloudflare tunnel, depending if I'm on a test server or using it in production
Would it be possible to add the remoteip module to apache during the build process and define the variable in docker compose or .env?
EDIT: Resolved this by adding the following to remoteip.conf and mounting it inside the container with the volume below

    LoadModule remoteip_module modules/mod_remoteip.so
    RemoteIPHeader CF-Connecting-IP #uncomment for cloudflare tunnels
#  RemoteIPHeader X-Forwarded-For #uncomment for standard reverse proxies


This is the file mount:
- ./remoteip.conf:/etc/apache2/conf.d/remoteip.conf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions