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
- Add `host` configuration option for specifying the application's web address in configuration.md and app_config.rs.
- Update docker-compose.yaml to include SQLPAGE_HOST and SQLPAGE_OIDC_ISSUER_URL environment variables.
- Enhance OIDC middleware to utilize the new `host` setting for redirect URLs and improve cookie handling in oidc.rs.
Copy file name to clipboardExpand all lines: configuration.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ Here are the available configuration options and their default values:
13
13
|`database_password`|| Database password. If set, this will override any password specified in the `database_url`. This allows you to keep the password separate from the connection string for better security. |
14
14
|`port`| 8080 | Like listen_on, but specifies only the port. |
15
15
| `unix_socket` | | Path to a UNIX socket to listen on instead of the TCP port. If specified, SQLPage will accept HTTP connections only on this socket and not on any TCP port. This option is mutually exclusive with `listen_on` and `port`.
16
+
|`host`|| The web address where your application is accessible (e.g., "myapp.example.com"). Used for login redirects with OIDC. |
16
17
|`max_database_pool_connections`| PostgreSQL: 50<BR> MySql: 75<BR> SQLite: 16<BR> MSSQL: 100 | How many simultaneous database connections to open at most |
17
18
|`database_connection_idle_timeout_seconds`| SQLite: None<BR> All other: 30 minutes | Automatically close database connections after this period of inactivity |
18
19
|`database_connection_max_lifetime_seconds`| SQLite: None<BR> All other: 60 minutes | Always close database connections after this amount of time |
@@ -95,6 +96,23 @@ To set up OIDC, you'll need to:
95
96
1. Register your application with an OIDC provider
96
97
2. Configure the provider's details in SQLPage
97
98
99
+
#### Setting Your Application's Address
100
+
101
+
When users log in through an OIDC provider, they need to be sent back to your application afterward. For this to work correctly, you need to tell SQLPage where your application is located online:
102
+
103
+
- Use the `host` setting to specify your application's web address (for example, "myapp.example.com")
104
+
- If you already have the `https_domain` setting set (to fetch https certificates for your site), then you don't need to duplicate it into `host`.
0 commit comments