Skip to content

Commit

Permalink
Move variables used for checking presence of environment variables in…
Browse files Browse the repository at this point in the history
…side IfDefine block
  • Loading branch information
otaconix committed Jun 25, 2023
1 parent fca3ade commit 7a61ce4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Docker/FreshRSS.Apache.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ AllowEncodedSlashes On
ServerTokens OS
TraceEnable Off

# Workaround to be able to check whether an environment variable is set
# See: https://serverfault.com/questions/1022233/using-ifdefine-with-environment-variables/1022234#1022234
Define VStart "${"
Define VEnd "}"

<IfDefine OIDC_ENABLED>
<IfModule !auth_openidc_module>
Error "The auth_openidc_module is not available. Install it or unset environment variable OIDC_ENABLED."
</IfModule>

# Workaround to be able to check whether an environment variable is set
# See: https://serverfault.com/questions/1022233/using-ifdefine-with-environment-variables/1022234#1022234
Define VStart "${"
Define VEnd "}"

OIDCProviderMetadataURL ${OIDC_PROVIDER_METADATA_URL}
OIDCClientID ${OIDC_CLIENT_ID}
OIDCClientSecret ${OIDC_CLIENT_SECRET}
Expand Down

0 comments on commit 7a61ce4

Please sign in to comment.