Skip to content

github Oauth redirection url in case of Google Cloud Run includes subdirectory name #1820

Answered by paskal
AmritasyaPutra asked this question in Q&A
Discussion options

You must be logged in to vote

I am 95% sure it's an issue on the side of your HTTP server. Please see this doc and let me know if something is missing there. With lighttpd configuration should look something like that:

# Proxy Remark42 without a subdomain
$HTTP["url"] =~ "^/remark42/" {
    url.rewrite = ( "^/remark42/(.*)" => "/$1" )
    
    proxy.server = (
        "" => (
            ( "host" => "remark42", "port" => 8080 )
        )
    )

    setenv.add-request-header = (
        "Host" => "env.HTTP_HOST",
        "X-Real-IP" => "env.REMOTE_ADDR",
        "X-Forwarded-For" => "env.REMOTE_ADDR",
        "X-Forwarded-Proto" => "https"
    )
}

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

paskal
Sep 28, 2024
Collaborator Sponsor

You must be logged in to vote
1 reply
@AmritasyaPutra
Comment options

Answer selected by paskal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1819 on September 28, 2024 19:12.