Skip to content

Commit

Permalink
Merge pull request #1256 from metacpan/oalders/config-yaml
Browse files Browse the repository at this point in the history
Switch configs to YAML
  • Loading branch information
oalders authored Sep 23, 2024
2 parents 6cf8abf + 02ca274 commit 5427987
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 82 deletions.
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

0 comments on commit 5427987

Please sign in to comment.