You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* See also this [Github discussion](https://github.com/pglombardo/PasswordPusher/issues/265#issuecomment-964432942).
94
94
*[External Documentation on mailer configuration](https://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration) for the underlying technology if you need more details for configuration issues.
95
95
96
-
# Forcing SSL Links
97
-
98
-
See also the Proxies section below.
99
-
100
-
| Environment Variable | Description |
101
-
| --------- | ------------------ |
102
-
| FORCE_SSL | The existence of this variable will set `config.force_ssl` to `true` and generate HTTPS based secret URLs
103
-
104
96
# Google Analytics
105
97
106
98
| Environment Variable | Description |
@@ -109,10 +101,24 @@ See also the Proxies section below.
109
101
| GA_ACCOUNT | The Google Analytics account id. E.g. `UA-XXXXXXXX-X`|
110
102
| GA_DOMAIN | The domain where the application is hosted. E.g. `pwpush.com`|
111
103
104
+
# Forcing SSL Links
105
+
106
+
See also the Proxies section below.
107
+
108
+
| Environment Variable | Description |
109
+
| --------- | ------------------ |
110
+
| FORCE_SSL | The existence of this variable will set `config.force_ssl` to `true` and generate HTTPS based secret URLs
111
+
112
112
# Proxies
113
113
114
114
An occasional issue is that when using Password Pusher behind a proxy, the generated secret URLs are incorrect. They often have the backend URL & port instead of the public fully qualified URL - or use HTTP instead of HTTPS (or all of the preceding).
115
115
116
116
To resolve this, make sure your proxy properly forwards the `X-Forwarded-Host`, `X-Forwarded-Port` and `X-Forwarded-Proto` headers.
117
117
118
118
The values in these headers represent the front end request. When these headers are sent, Password Pusher can then build the correct URLs.
119
+
120
+
If you are unable to have these headers passed to the application for any reason, you could instead force an override of the base URL using the `PWP__OVERRIDE_BASE_URL` environment variable.
121
+
122
+
| Environment Variable | Description | Example Value |
123
+
| --------- | ------------------ | --- |
124
+
| PWP__OVERRIDE_BASE_URL | Set this value (without a trailing slash) to force the base URL of generated links. | 'https://subdomain.domain.dev'
0 commit comments