Files
sakhteman/config.yml
T

99 lines
2.0 KiB
YAML
Raw Normal View History

2024-02-15 00:17:51 +03:30
# Authentication
auth:
secret_key: '09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7'
algorithm: 'HS256'
access_token_expire_minutes: 43201
refresh_token_expire_minutes: 43200
2026-06-10 00:31:45 +03:30
url: 'http://pm.khanesaziceco.ir/api/api/me'
2024-02-15 00:17:51 +03:30
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'
2024-03-14 14:16:16 +03:30
- 'http://localhost:3000'
2024-02-15 00:17:51 +03:30
- 'http://ygram.rooyart.ir'
- 'https://ygram.rooyart.ir'
2024-03-14 14:20:11 +03:30
- 'http://172.16.1.194'
2025-11-02 19:13:34 +03:30
- 'http://pm.khanesaziceco.ir'
- 'https://pm.khanesaziceco.ir'
2024-02-15 00:17:51 +03:30
# 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:
2024-02-15 19:24:51 +03:30
# url: 'mongodb://localhost:27017'
2024-02-15 23:11:56 +03:30
url: 'mongodb://srv:b3a91bd801@172.16.1.194:27170'
2024-02-15 00:17:51 +03:30
db: 'sakhteman'
production:
2024-02-15 23:11:56 +03:30
# url: 'mongodb://localhost:27017'
url: 'mongodb://srv:b3a91bd801@172.16.1.194:27170'
2024-02-15 00:17:51 +03:30
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:
2026-06-10 00:31:45 +03:30
url: 'redis://172.16.1.194:6379'
2024-02-15 00:17:51 +03:30
db: ''
auth_redis:
2026-06-10 00:31:45 +03:30
url: 'redis://172.16.1.194:6379'
2024-02-15 00:17:51 +03:30
db: '1'
neo4j:
url: 'neo4j+s://scm.neo4jlabs.com'
db: 'auth'
version: 4
password: 'sample'
user: 'local'
2026-02-17 22:33:24 +03:30
# MySQL (read-only) - جدا از database تا مونگو و بقیه بدون تغییر بمانند
mysql:
dev:
host: '172.16.1.194'
port: 3309
user: 'root'
password: '2TjwtsnYAs'
db: 'doc'
production:
host: '172.16.1.194'
port: 3309
user: 'root'
password: '2TjwtsnYAs'
db: 'doc'