aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/web/pinnwand-lovelace/defaults-configmap.yaml
diff options
context:
space:
mode:
authorGravatar Amrou Bellalouna <[email protected]>2024-05-15 22:34:41 +0200
committerGravatar GitHub <[email protected]>2024-05-15 20:34:41 +0000
commit220e367c013efd5e4b43e96cd84d29bd3cb3ef19 (patch)
tree819260971eb5ad98ccf85c0d2e29104bb3e4e0c9 /kubernetes/namespaces/web/pinnwand-lovelace/defaults-configmap.yaml
parentPleasure the style dictator (#291) (diff)
Deploy a pinnwand instance that used lovelace's pg database (#293)
* add a deployment config for pinnwand on lovelace * add a dns entry for the new pastebin * Add database URI for pinnwand to connect to psql on lovelace --------- Co-authored-by: Chris Lovering <[email protected]>
Diffstat (limited to 'kubernetes/namespaces/web/pinnwand-lovelace/defaults-configmap.yaml')
-rw-r--r--kubernetes/namespaces/web/pinnwand-lovelace/defaults-configmap.yaml35
1 files changed, 35 insertions, 0 deletions
diff --git a/kubernetes/namespaces/web/pinnwand-lovelace/defaults-configmap.yaml b/kubernetes/namespaces/web/pinnwand-lovelace/defaults-configmap.yaml
new file mode 100644
index 0000000..8d9fbbd
--- /dev/null
+++ b/kubernetes/namespaces/web/pinnwand-lovelace/defaults-configmap.yaml
@@ -0,0 +1,35 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: pinnwand-lovelace-config
+ namespace: web
+data:
+ config.toml: |
+ # Maximum size in bytes of pastes
+ paste_size = 524288
+
+ default_selected_lexer = "python"
+ # List of lexers to pin to the top of the dropdown list
+ preferred_lexers = ["python", "autodetect", "pytb", "pycon", "text", "markdown", "restructuredtext", "sql"]
+
+ page_list = ["about", "removal"]
+ footer = 'View <a href="//github.com/supakeen/pinnwand" target="_BLANK">source code</a>, <a href="/removal">removal</a> information, or read the <a href="/about">about</a> page.'
+
+ paste_help = '''<p>Welcome to Python Discord's pastebin, powered by <a href="//github.com/supakeen/pinnwand" target="_BLANK">pinnwand</a>. It allows you to share code with others. If you write code in the text area below and press the paste button you will be given a link you can share with others so they can view your code as well.</p><p>People with the link can view your pasted code, only you can remove your paste and it expires automatically. Note that anyone could guess the URI to your paste so don't rely on it being private.</p>'''
+ expiries.30days = 2592000
+ expiries.7days = 604800
+ expiries.1day = 86400
+
+ ratelimit.read.capacity = 100
+ ratelimit.read.consume = 1
+ ratelimit.read.refill = 2
+
+ ratelimit.create.capacity = 10 # Default is 2
+ ratelimit.create.consume = 1 # Default is 2
+ ratelimit.create.refill = 10 # Default is 1
+
+ ratelimit.delete.capacity = 2
+ ratelimit.delete.consume = 2
+ ratelimit.delete.refill = 1
+
+ report_email = "[email protected]"