feat: nginx add gotrue path rewrite (#121)

* feat: nginx add gotrue path rewrite

* fix: prefix gotrue for gotrue url
This commit is contained in:
Zack 2023-10-17 13:58:31 +08:00 committed by GitHub
parent d638c01763
commit ebc2e7ebf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -27,7 +27,7 @@
<div id="oauth2Login">
<p>Or login with:</p>
<a href="/authorize?provider=google&redirect_to=/web/login">Google</a>
<a href="/gotrue/authorize?provider=google&redirect_to=/web/login">Google</a>
</div>
<script>

View File

@ -18,8 +18,9 @@ http {
listen 80;
listen 443 ssl;
# GoTrue
location ~ ^/(verify|authorize|callback|settings|user|token|admin) {
# GoTrue
location /gotrue/ {
rewrite ^/gotrue(/.*)$ $1 break;
proxy_pass http://gotrue:9999;
}

View File

@ -22,7 +22,7 @@ pub fn localhost_client() -> Client {
pub const DEV_URL: &str = "https://test.appflowy.cloud";
pub const DEV_WS: &str = "wss://test.appflowy.cloud/ws";
pub const DEV_GOTRUE: &str = "https://test.appflowy.cloud";
pub const DEV_GOTRUE: &str = "https://test.appflowy.cloud/gotrue";
#[allow(dead_code)]
pub fn test_appflowy_cloud_client() -> Client {