comments in yaml config files

This commit is contained in:
Athou
2014-08-10 21:47:43 +02:00
parent 7b8801f6db
commit 6ef5f824da
3 changed files with 117 additions and 28 deletions

View File

@@ -1,37 +1,80 @@
# CommaFeed settings
# ------------------
app: app:
# url used to access commafeed
publicUrl: http://localhost:8082/ publicUrl: http://localhost:8082/
# wether to allow user registrations
allowRegistrations: true allowRegistrations: true
# put your google analytics tracking code here
googleAnalyticsTrackingCode: googleAnalyticsTrackingCode:
googleClientId:
googleClientSecret: # number of http threads
backgroundThreads: 3 backgroundThreads: 3
# number of database updating threads
databaseUpdateThreads: 1 databaseUpdateThreads: 1
# settings for sending emails (password recovery)
smtpHost: smtpHost:
smtpPort: smtpPort:
smtpTls: false smtpTls: false
smtpUserName: smtpUserName:
smtpPassword: smtpPassword:
# wether this commafeed instance has a lot of feeds to refresh
# leave this to false in almost all cases
heavyLoad: false heavyLoad: false
pubsubhubbub: false
imageProxyEnabled: false # minimum amount of time commafeed will wait before refreshing the same feed
queryTimeout: 0
keepStatusDays: 0
refreshIntervalMinutes: 5 refreshIntervalMinutes: 5
# wether to enable pubsub
# probably not needed if refreshIntervalMinutes is low
pubsubhubbub: false
# if enabled, images in feed entries will be proxied through the server instead of accessed directly by the browser
# useful if commafeed is usually accessed through a restricting proxy
imageProxyEnabled: false
# database query timeout (in milliseconds), 0 to disable
queryTimeout: 0
# time to keep unread statuses (in days), 0 to disable
keepStatusDays: 0
# cache service to use, possible values are 'noop' and 'redis'
cache: noop cache: noop
# announcement string displayed on the main page
announcement: announcement:
# Database connection
# -------------------
# for MySQL
# driverClass is com.mysql.jdbc.Driver
# url is jdbc:mysql://localhost/commafeed?autoReconnect=true&failOverReadOnly=false&maxReconnects=20&rewriteBatchedStatements=true
#
# for PostgreSQL
# driverClass is org.postgresql.Driver
# url is jdbc:postgresql://localhost:5432/commafeed
#
# for Microsoft SQL Server
# driverClass is net.sourceforge.jtds.jdbc.Driver
# url is jdbc:jtds:sqlserver://localhost:1433/commafeed;instance=<instanceName, remove if not needed>
database: database:
driverClass: org.h2.Driver driverClass: org.h2.Driver
url: jdbc:h2:./target/example
user: sa user: sa
password: sa password: sa
url: jdbc:h2:./target/example
properties: properties:
charSet: UTF-8 charSet: UTF-8
# hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
maxWaitForConnection: 1s maxWaitForConnection: 1s
validationQuery: "/* MyApplication Health Check */ SELECT 1" validationQuery: "/* CommaFeed Health Check */ SELECT 1"
minSize: 1 minSize: 1
maxSize: 8 maxSize: 50
checkConnectionWhileIdle: true checkConnectionWhileIdle: true
server: server:
@@ -48,4 +91,11 @@ logging:
liquibase: INFO liquibase: INFO
org.hibernate.SQL: ALL org.hibernate.SQL: ALL
appenders: appenders:
- type: console - type: console
- type: file
currentLogFilename: log/commafeed.log
threshold: ALL
archive: true
archivedLogFilenamePattern: log/commafeed-%d.log
archivedFileCount: 5
timeZone: UTC

View File

@@ -1,37 +1,80 @@
# CommaFeed settings
# ------------------
app: app:
# url used to access commafeed
publicUrl: http://localhost:8082/ publicUrl: http://localhost:8082/
# wether to allow user registrations
allowRegistrations: false allowRegistrations: false
# put your google analytics tracking code here
googleAnalyticsTrackingCode: googleAnalyticsTrackingCode:
googleClientId:
googleClientSecret: # number of http threads
backgroundThreads: 3 backgroundThreads: 3
# number of database updating threads
databaseUpdateThreads: 1 databaseUpdateThreads: 1
# settings for sending emails (password recovery)
smtpHost: smtpHost:
smtpPort: smtpPort:
smtpTls: false smtpTls: false
smtpUserName: smtpUserName:
smtpPassword: smtpPassword:
# wether this commafeed instance has a lot of feeds to refresh
# leave this to false in almost all cases
heavyLoad: false heavyLoad: false
pubsubhubbub: false
imageProxyEnabled: false # minimum amount of time commafeed will wait before refreshing the same feed
queryTimeout: 0
keepStatusDays: 0
refreshIntervalMinutes: 5 refreshIntervalMinutes: 5
# wether to enable pubsub
# probably not needed if refreshIntervalMinutes is low
pubsubhubbub: false
# if enabled, images in feed entries will be proxied through the server instead of accessed directly by the browser
# useful if commafeed is usually accessed through a restricting proxy
imageProxyEnabled: false
# database query timeout (in milliseconds), 0 to disable
queryTimeout: 0
# time to keep unread statuses (in days), 0 to disable
keepStatusDays: 0
# cache service to use, possible values are 'noop' and 'redis'
cache: noop cache: noop
# announcement string displayed on the main page
announcement: announcement:
# Database connection
# -------------------
# for MySQL
# driverClass is com.mysql.jdbc.Driver
# url is jdbc:mysql://localhost/commafeed?autoReconnect=true&failOverReadOnly=false&maxReconnects=20&rewriteBatchedStatements=true
#
# for PostgreSQL
# driverClass is org.postgresql.Driver
# url is jdbc:postgresql://localhost:5432/commafeed
#
# for Microsoft SQL Server
# driverClass is net.sourceforge.jtds.jdbc.Driver
# url is jdbc:jtds:sqlserver://localhost:1433/commafeed;instance=<instanceName, remove if not needed>
database: database:
driverClass: org.h2.Driver driverClass: org.h2.Driver
url: jdbc:h2:./target/example
user: sa user: sa
password: sa password: sa
url: jdbc:h2:./target/example
properties: properties:
charSet: UTF-8 charSet: UTF-8
# hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
maxWaitForConnection: 1s maxWaitForConnection: 1s
validationQuery: "/* MyApplication Health Check */ SELECT 1" validationQuery: "/* CommaFeed Health Check */ SELECT 1"
minSize: 1 minSize: 1
maxSize: 8 maxSize: 50
checkConnectionWhileIdle: true checkConnectionWhileIdle: true
server: server:
@@ -42,9 +85,11 @@ server:
- type: http - type: http
port: 8084 port: 8084
logging: logging:
level: INFO level: WARN
loggers: loggers:
com.commafeed: INFO com.commafeed: INFO
liquibase: INFO
io.dropwizard.server.ServerFactory: INFO
appenders: appenders:
- type: console - type: console
- type: file - type: file

View File

@@ -42,12 +42,6 @@ public class CommaFeedConfiguration extends Configuration {
@JsonProperty @JsonProperty
private String googleAnalyticsTrackingCode; private String googleAnalyticsTrackingCode;
@JsonProperty
private String googleClientId;
@JsonProperty
private String googleClientSecret;
@JsonProperty @JsonProperty
private int backgroundThreads; private int backgroundThreads;