feat: nginx add gotrue path rewrite (#121)
* feat: nginx add gotrue path rewrite * fix: prefix gotrue for gotrue url
This commit is contained in:
parent
d638c01763
commit
ebc2e7ebf6
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue