Files
sakhteman/config.yml
T
2025-11-02 19:13:34 +03:30

84 lines
1.7 KiB
YAML

# Authentication
auth:
secret_key: '09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7'
algorithm: 'HS256'
access_token_expire_minutes: 43201
refresh_token_expire_minutes: 43200
url: 'https://auth.hacoupian.net/v2/auth/validate-token'
cache_prefix_key: 'auth_key_'
cache_ttl: 360
# Server
server:
base_api_doc_url: ''
is_prod: false
prefix_url: '/v1'
api_logo: 'https://esperlos.ir/storage/2022/07/926f6aaba773.png'
port: 8001
static_files:
storage: 'storage'
cors:
origins:
- 'http://192.168.15.228:85'
- 'http://192.168.15.227'
- 'http://192.168.15.77:3300'
- 'http://localhost'
- 'http://localhost:3100'
- 'http://localhost:3000'
- 'http://ygram.rooyart.ir'
- 'https://ygram.rooyart.ir'
- 'http://172.16.1.194'
- 'http://pm.khanesaziceco.ir'
- 'https://pm.khanesaziceco.ir'
# Modules
dependency:
middleware: [ 'core' ]
routes: [ 'core','auth', 'app','upload' ]
celery:
broker: 'redis://127.0.0.1:6379/0'
backend: 'redis://127.0.0.1:6379/0'
autodiscover_tasks: [ ]
# MongoDB Connection
database:
mongo:
dev:
# url: 'mongodb://localhost:27017'
url: 'mongodb://srv:b3a91bd801@172.16.1.194:27170'
db: 'sakhteman'
production:
# url: 'mongodb://localhost:27017'
url: 'mongodb://srv:b3a91bd801@172.16.1.194:27170'
db: 'sakhteman'
mongo_auth:
dev:
url: 'mongodb://127.0.0.1:27017'
db: 'omde'
production:
url: 'mongodb://127.0.0.1:27017'
db: 'omde'
limiter_redis:
url: 'redis://192.168.15.76:6379'
db: ''
auth_redis:
url: 'redis://192.168.15.231:6379'
db: '1'
neo4j:
url: 'neo4j+s://scm.neo4jlabs.com'
db: 'auth'
version: 4
password: 'sample'
user: 'local'