#Quick Question

125 messages · Page 1 of 1 (latest)

tough junco
#

<@&634618551491100692> Anyone?

weak estuary
tough junco
#

what configuration changes to make?

weak estuary
#

IMO the best thing to do in this case would be to deploy a new instance of appwrite to your cloud provider, then utilize migrations within the appwrite console to tranfer functions/users/data/etc

tough junco
#

and ports?

#

you mean fresh installation on vps and then transfer ?

#

it's installing, what domain will it use? my vps ip?

weak estuary
#

You would use your vps ip until you provide a domain

tough junco
#

it throwed an error

#

80 already in use

weak estuary
#

it's probably port 443 for ssl

tough junco
#

for domain i entered domain and for A record i entered vps ip

weak estuary
#

update the environment variables to reflect the domain

tough junco
#

how? this is fresh installation

#

i deleted appwrite folder

weak estuary
#

oof

#

You'll probably need to remove the appwrite docker containers

tough junco
#

yeah am doing it

#

what now?

#

it throwed error

#

kindly help me step by step now

    --volume /var/run/docker.sock:/var/run/docker.sock \
    --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
    --entrypoint="install" \
    appwrite/appwrite:1.6.0```


i am running this command
weak estuary
#

when you run that command what error occurs?

tough junco
#

just now

#

cleared and removed all containers

#

volume

#

and everything

#

now?

weak estuary
#

yea, just follow the steps it gives you

tough junco
#

i did it last time

#

port 80 is being used by nginx i think

weak estuary
#

realistically I think you can pick any port you want, but many ports are already claimed by other services.

tough junco
#

8080 for http
8443 for https?

weak estuary
#

yea 8080 is commonly an alternate port for 80

tough junco
#

can i type domain I want to use?

weak estuary
#

yea

tough junco
#

vps ip?

#

??? vps ip or domain?

weak estuary
#

I think your domain

tough junco
#

that is not a good answer appwritepeepo

weak estuary
#

sorry it's been a really long time since I ran this command myself for my instance.

tough junco
#

kk then, am going for ip

#

Appwrite installed successfully

#

next step?

#

why ???

weak estuary
#

probably your nginx instance causing issue, I've not got experience with that so I don't have much to offer.

tough junco
#

should i ask hostinger?

tough junco
#

yo @weak estuary

#

appwrite is live now. how to migrate my data

daring light
tough junco
#

local appwrite to vps appwrite

#
  • database - collections
  • functions
  • storage
  • message providers
#

only the setup, since it was development so there is no user data

#

@daring light @weak estuary

daring light
#

If you want to keep everything in the same way as the local instance, you will need to backup and restore the backup manually in the server: https://www.youtube.com/watch?v=lM5yZEPtlvg

Appwrite is a self-hosted backend-as-a-service platform that provides developers with all the core APIs required to build any application.

It's a good practice to backup your Appwrite server data regularly if you need to restore it later.

Backup/Restore scripts: https://gist.github.com/stnguyen90/fee636ff652b8ecbf761935b2aa254fb

Backup Notes...

â–¶ Play video
tough junco
#

1 question

#

each appwrite function has a different id and goes with the domain

#

i have cloud.appwrite.com how will functions work? do i have to listen for ***.cloud.appwrite.com ?

#

*** is for function id

tough junco
#

bro a little help

#

i think i forgot password or it is changed somehow

#

after restoration I am unable to login

#

i tried both local email password and newly installed as well

daring light
tough junco
#

migrated successfully

#

now logged in

#

and one more thing for password reset it says smtp disabled but i have smtp enabled

#

and another thing how can i prevent others to signup or something like that

#

and also functions, functions create separate subdomain that is not accessable how to fix that

daring light
tough junco
#

but how to make it listen to the functions

#

@daring light _APP_DOMAIN_FUNCTIONS=*.domain.tld can i do this?

night reef
#

Just put the wildcard domain there so if you made a wildcard domain *.functions.appwrite.com then insert functions.appwrite.com

night reef
#

Your setup is to blame

#

If you would put nginx out of the equation it should work

tough junco
#

uhhmmmm okay, so how to fix it

night reef
#

What is your nginx config

tough junco
night reef
#

Traefik already acts as the reverse proxy

#

What's your use case for nginx

tough junco
#

2 websites 1 telegram bot

night reef
#

Did you cnfigure the nginx config yourself?

tough junco
#

can it be done without nginx? using docker or traefik

#

yes

night reef
#

It can be done. Your config is just wrong

#

If I were you I would just ask ChatGPT about this

#

You can also post it here

tough junco
#

fine, so if i reset my os and start from scratch

#

??

night reef
#

I mean before you have to wipe everything just put nginx out of the equation and serve via traefik directly

#

It should work because I have used it this way before

tough junco
#

u mean uninstall nginx and install traefik>

night reef
#

just systemctl stop nginx

tough junco
#

any beginner commands for me?

night reef
#

and stop the other website as well

#

So port 80 and 443 is only reserved for appwrite traefik for now

tough junco
#

stopped

#

everything

#

and nginx

#

now?

night reef
#

Have you made any changes to the appwrite docker-compose file?

#

If not then just start it

tough junco
#

made changes to env

night reef
#

Should be fine

tough junco
#

ok, so what am i going to do about other apps

#

and btw appwrite is not working correctly perhaps. it is not loggin in and now loading....

night reef
#

After that we have to make sure the nginx config is correct

tough junco
#

bro 😂

#

let me reset my machine

#

and restore data