Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch configs to YAML #1256

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions metacpan_server.conf

This file was deleted.

34 changes: 34 additions & 0 deletions metacpan_server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
git: /usr/bin/git

level: info
elasticsearch_servers: http://localhost:9200
minion_dsn: postgresql:///minion_queue
port: 5000

logger:
class: Log::Log4perl::Appender::File
filename: ../var/log/metacpan.log
syswrite: 1

controller:
User::Turing:
private_key: 59125ffc09413eed3f2a2c07a37c7a44b95633e2

smtp:
host: smtp.fastmail.com
port: 465
username: [email protected]
password: seekrit

oauth:
github:
key: seekrit
secret: seekrit
google:
key: seekrit
secret: seekrit
twitter:
key: seekrit
secret: seekrit

front_end_url: http://0.0.0.0:5001
41 changes: 0 additions & 41 deletions metacpan_server_testing.conf

This file was deleted.

37 changes: 37 additions & 0 deletions metacpan_server_testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
cpan: var/t/tmp/fakecpan
die_on_error: 1
level: warn
port: 5000
source_base: var/t/tmp/source

elasticsearch_servers: http://elasticsearch_test:9200

logger:
class: Log::Log4perl::Appender::Screen
name: testing

model:
CPAN:
servers: __ENV(ES)__
User:
servers: __ENV(ES)__

plugin:
Session:
servers: __ENV(ES)__

controller:
User::Turing:
captcha_class: Captcha::Mock
private_key: testing

github_key: foo
github_secret: bar

secret: weak

smtp:
host: smtp.fastmail.com
port: 465
username: [email protected]
password: seekrit