Closed t0toto closed 8 months ago
Hello @t0toto, thank you for your interest in this project.
From what I understand you are trying to setup VolWeb for testing. When doing this your system needs to be aware of all of the env variable of docker/.env
(this is because your are running the webserver and celery worker locally).
If you are testing VolWeb locally and not in production consider not using https in your configuration.
Learn more here: https://github.com/k1nd0ne/VolWeb/wiki/VolWeb-Documentation#-tutorial---deploying-volweb-on-a-local-computer-or-contributing
I am recommanding exporting them or even better edit your virtual environnement activate script to enable them every time:
Here is an example:
cd VolWeb
vim ./venv/bin/activate
export CSRF_TRUSTED_ORIGINS=https://192.168.145.129 # Change me
export DJANGO_SECRET=toto # Change me
export WEBSOCKET_URL=wss://192.168.145.129 # Change me
export AWS_ENDPOINT_URL=https://192.168.145.129:9000 # Change me
export AWS_ENDPOINT_HOST=192.168.145.129:9000 # Change me
export AWS_REGION="" # Don't change me if you are using MinIO and not AWS
export AWS_ACCESS_KEY_ID=user # Change me with the MINIO/AWS ACL
export AWS_SECRET_ACCESS_KEY=password # Change me with the MINIO/AWS ACL
export POSTGRES_USER=volweb # Change me
export POSTGRES_PASSWORD=volweb # Change me
export POSTGRES_DB=volweb
export DATABASE=postgres
export DATABASE_HOST=volweb-postgresdb
export DATABASE_PORT=5432
export BROKER_HOST=volweb-redis
export BROKER_PORT=6379
Do you think this should be added in the documentation ?
Best regards. Félix.
Hello Félix,Thanks for your advice!It's helpful. I must say, your project is not only interesting but also remarkably helpful. And I'm sorry, as you can see, my English is not very good. I rely more on translation software for communication. Please forgive any issues with vocabulary or formatting Wishing you continued success and fulfillment in all your endeavors. Warmest regards and heartfelt appreciation. toto
------------------ 原始邮件 ------------------ 发件人: "k1nd0ne/VolWeb" @.>; 发送时间: 2024年3月26日(星期二) 下午4:45 @.>; @.**@.>; 主题: Re: [k1nd0ne/VolWeb] CSRF_TRUSTED_ORIGINS Not Found During Configure (Issue #9)
Hello @t0toto, thank you for your interest in this project.
From what I understand you are trying to setup VolWeb for testing. When doing this your system needs to be aware of all of the env variable of docker/.env
I am recommanding exporting them or even better edit your virtual environnement activate script to enable them every time:
Here is an example:
vim /venv/bin/activate
export CSRF_TRUSTED_ORIGINS=https://192.168.145.129 # Change me export DJANGO_SECRET=toto # Change me export WEBSOCKET_URL=wss://192.168.145.129 # Change me export AWS_ENDPOINT_URL=https://192.168.145.129:9000 # Change me export AWS_ENDPOINT_HOST=192.168.145.129:9000 # Change me export AWS_REGION="" # Don't change me if you are using MinIO and not AWS export AWS_ACCESS_KEY_ID=user # Change me with the MINIO/AWS ACL export AWS_SECRET_ACCESS_KEY=password # Change me with the MINIO/AWS ACL export POSTGRES_USER=volweb # Change me export POSTGRES_PASSWORD=volweb # Change me export POSTGRES_DB=volweb export DATABASE=postgres export DATABASE_HOST=volweb-postgresdb export DATABASE_PORT=5432 export BROKER_HOST=volweb-redis export BROKER_PORT=6379
Do you think this should be added in the documentation ?
Best regards. Félix.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Hello, When I was configuring the python environment, I encountered the following error
Ubuntu was unable to obtain the CSRF_TRUSTED_ORIGINS
My .env file has the following contents
I don't understand how docker configuration is added to python's venv variables. Maybe I need to
export CSRF_TRUSTED_ORIGINS
?I would really appreciate you helping me with this problem I run the "VolWeb-2.0" version. Thank you