OSDN Git Service

debian: add sample config file
authorhylom <hylom@users.sourceforge.jp>
Thu, 16 Mar 2017 10:47:56 +0000 (19:47 +0900)
committerhylom <hylom@users.sourceforge.jp>
Thu, 16 Mar 2017 10:47:56 +0000 (19:47 +0900)
debian/rules
src/configs/newslash.conf.example [new file with mode: 0644]

index f7830e2..d38d231 100755 (executable)
@@ -7,7 +7,9 @@ ASSETS=newslash-sradjp-assets
 SRAD=newslash-sradjp
 
 SRCDIR=src/newslash_web
+CONFDIR=src/configs
 CORE_DEST=$(CURDIR)/debian/$(CORE)/usr/share/newslash
+CORE_ETC=$(CURDIR)/debian/$(CORE)/etc/newslash
 ASSETS_DEST=$(CURDIR)/debian/$(ASSETS)/usr/share/newslash
 SRAD_DEST=$(CURDIR)/debian/$(SRAD)/usr/share/newslash
 
@@ -19,6 +21,8 @@ install/$(CORE)::
        find ./external/perllib -name '*.pm' \
          -exec install -pDm 644 {} $(CORE_DEST)/{} \;
        install -pDm 755 $(SRCDIR)/script/newslash_web $(CORE_DEST)/script/newslash_web
+       mkdir -m 755 -p $(CORE_ETC)
+       install -pDm 644 $(CONFDIR)/newslash.conf.example $(CORE_ETC)/newslash.conf.example
 
 
 install/$(ASSETS)::
diff --git a/src/configs/newslash.conf.example b/src/configs/newslash.conf.example
new file mode 100644 (file)
index 0000000..5169ca5
--- /dev/null
@@ -0,0 +1,76 @@
+---
+BasicAuth:
+  enable: 0
+  username: ''
+  password: ''
+  message: this is newslash
+
+hypnotoad:
+  listen:
+    - http://*:3000
+
+Site:
+  name: newslash
+  root: "/"
+  base_url: http://example.com:3000
+  description: yet another news site
+  img_path: "/img"
+  css_path: "/css"
+  topic_icon_base_url: "/img/topic_icon"
+
+CSSCompile:
+  source_dir: css
+  dest_dir: public/css
+  lessc: "/usr/bin/lessc"
+
+System:
+  secret_key: secret strings for hasing
+  session_store: kvs
+  salt: ''
+  readonly: 0
+
+Story:
+  title_max_byte: 100
+
+Database:
+  host: database-host-name
+  name: newslash
+  user: newslash
+  password: password
+
+KeyValueStore:
+  type: redis
+  host: redis-host-name:6379
+
+Legacy:
+  memcached: slash:11211
+
+Editor:
+  allowed_tags:
+    b: []
+    i: []
+    p: []
+    br: []
+    a:
+      - href
+    ol:
+      - start
+    ul: []
+    li: []
+    dl: []
+    dt: []
+    dd: []
+    em: []
+    strong: []
+    tt: []
+    blockquote:
+      - title
+      - cite
+    div: []
+    ecode: []
+    del: []
+    ins: []
+    sub: []
+    sup: []
+    quote: []
+    strike: []