services: - name: restbase module: hyperswitch conf: port: 7231 salt: secret default_page_size: 125 user_agent: RESTBase ui_name: RESTBase ui_url: https://www.mediawiki.org/wiki/RESTBase ui_title: RESTBase docs spec: x-request-filters: - path: lib/security_response_header_filter.js x-sub-request-filters: - type: default name: http options: allow: - pattern: http://localhost/api.php forward_headers: true - pattern: http://localhost:7231 forward_headers: true - pattern: http://localhost:8888 forward_headers: true - pattern: http://www.isekai.cn forward_headers: true - pattern: http://en.1meji.com forward_headers: true - pattern: http://zh.1meji.com forward_headers: true - pattern: https://www.isekai.cn forward_headers: true - pattern: https://en.1meji.com forward_headers: true - pattern: https://zh.1meji.com forward_headers: true - pattern: http://localhost:10044 forward_headers: true - pattern: /^https?:\/\// paths: /{domain:localhost}: &arbitary_domain_zh x-modules: - path: projects/isekai.yaml options: proxy: backend_host_template: '{{"/{domain}/sys/legacy"}}' block_external_reqs: true action: # XXX Check API URL! apiUriTemplate: http://www.isekai.cn/api.php # XXX Check the base RESTBase URI baseUriTemplate: http://www.isekai.cn/api/rest_v1 parsoid: # XXX Check Parsoid URL! host: http://www.isekai.cn/rest.php response_cache_control: 's-maxage=0, max-age=86400' grace_ttl: 1000000 mathoid: # XXX Check Mathoid URL! host: http://localhost:10044 mobileapps: host: http://localhost:8888 cxserver: host: http://localhost:8297 table: type: restbase-mysql host: localhost database: restbase keyspace: system username: root password: root pool_idle_timeout: 20000 retry_delay: 250 retry_limit: 10 show_sql: false storage_groups: - name: zh.1meji.com domains: /./ purged_cache_control: test_purged_cache_control # Cache control for purged endpoints allowing short-term client caching purged_cache_control_client_cache: test_purged_cache_control_with_client_caching /{domain:www.isekai.cn}: *arbitary_domain_zh /{domain:zh.1meji.com}: *arbitary_domain_zh /{domain:en.1meji.com}: &arbitary_domain_en x-modules: - path: projects/isekai.yaml options: proxy: backend_host_template: '{{"/{domain}/sys/legacy"}}' block_external_reqs: true action: # XXX Check API URL! apiUriTemplate: http://en.1meji.com/api.php # XXX Check the base RESTBase URI baseUriTemplate: http://en.1meji.com/api/rest_v1 parsoid: # XXX Check Parsoid URL! host: http://en.1meji.com/rest.php response_cache_control: 's-maxage=0, max-age=86400' grace_ttl: 1000000 mathoid: # XXX Check Mathoid URL! host: http://localhost:10044 mobileapps: host: http://localhost:8888 cxserver: host: http://10.0.0.17:8297 table: type: restbase-mysql host: localhost database: restbase keyspace: system username: root password: root pool_idle_timeout: 20000 retry_delay: 250 retry_limit: 10 show_sql: false storage_groups: - name: en.1meji.com domains: /./ purged_cache_control: test_purged_cache_control # Cache control for purged endpoints allowing short-term client caching purged_cache_control_client_cache: test_purged_cache_control_with_client_caching # Finally, a standard service-runner config. info: name: restbase logging: name: restbase level: info # Statsd metrics reporter metrics: type: statsd host: localhost port: 8125 num_workers: 1