~jadedctrl/jam-xwx-moe
~jadedctrl/jam-xwx-moe/pleroma/prod.exs
~jadedctrl/jam-xwx-moe/pleroma/prod.exs
0 | import Config |
1 |
|
2 | config :pleroma, Pleroma.Web.Endpoint, |
3 | url: [host: "jam.xwx.moe", port: 443, scheme: "https"], |
4 | http: [port: 4000], |
5 | protocol: "http" |
6 |
|
7 | config :phoenix, serve_endpoints: true |
8 |
|
9 | # Do not print debug messages in production |
10 | config :logger, :console, level: :info |
11 | config :logger, :ex_syslogger, level: :info |
12 |
|
13 | # Finally import the config/prod.secret.exs |
14 | # which should be versioned separately. |
15 | if File.exists?("./config/prod.secret.exs") do |
16 | import_config "prod.secret.exs" |
17 | else |
18 | "`config/prod.secret.exs` not found. You may want to create one by running `mix pleroma.instance gen`" |
19 | |> IO.warn([]) |
20 | end |
21 |
|
22 | if File.exists?("./config/prod.exported_from_db.secret.exs"), |
23 | do: import_config("prod.exported_from_db.secret.exs") |
24 |
|
25 |
|
26 | config :pleroma, Pleroma.Captcha.Kocaptcha, endpoint: "http://localhost:5001" |
27 |
|
28 | config :pleroma, Pleroma.Captcha, |
29 | enabled: true, |
30 | seconds_valid: 3000, |
31 | method: Pleroma.Captcha.Kocaptcha |
32 |
|
33 | config :pleroma, :instance, |
34 | name: "Mansardo Jamada", |
35 | description: "Esperanta servilo federuja, farita per amo kaj nattō!", |
36 | short_description: "Esperanta servilo federuja, farita per amo kaj nattō!", |
37 | email: "xwx@posteo.org", |
38 | notify_email: "xwx@posteo.org", |
39 | limit: 50000, |
40 | upload_limit: 50_000_000, |
41 | registrations_open: true, |
42 | max_pinned_statuses: 25, |
43 | account_approval_required: false, |
44 | languages: "eo" |
45 |
|
46 | config :pleroma, :instance, static_dir: "/opt/pleroma/instance/static" |
47 | config :pleroma, Pleroma.Uploaders.Local, uploads: "/opt/pleroma/uploads" |
48 |
|
49 | config :pleroma, :manifest, |
50 | icons: [ |
51 | %{ |
52 | src: "/static/bildoj/emblemo.png", |
53 | type: "image/png" |
54 | } |
55 | ], |
56 | theme_color: "#282c37", |
57 | background_color: "#191b22" |
58 |
|
59 |
|
60 | # Enable Strict-Transport-Security once SSL is working: |
61 | config :pleroma, :http_security, |
62 | sts: true |
63 |
|
64 |
|
65 | config :pleroma, Pleroma.Upload, |
66 | filters: [Pleroma.Upload.Filter.Exiftool.StripLocation, Pleroma.Upload.Filter.Exiftool.ReadDescription], |
67 | base_url: "https://ujo.jam.xwx.moe/media" # Ruza nomo, ĉu ne? =w= |
68 |
|
69 |
|
70 | config :pleroma, :frontend_configurations, |
71 | pleroma_fe: %{ |
72 | alwaysShowSubjectInput: true, |
73 | background: "/static/bildoj/fono.jpg", |
74 | collapseMessageWithSubject: true, |
75 | disableChat: true, |
76 | greentext: true, |
77 | hideFilteredStatuses: false, |
78 | hideMutedPosts: false, |
79 | hidePostStats: false, |
80 | hideSitename: false, |
81 | hideUserStats: false, |
82 | loginMethod: "password", |
83 | logo: "/static/bildoj/emblemo.png", |
84 | logoMargin: ".1em", |
85 | logoMask: false, |
86 | minimalScopesMode: false, |
87 | noAttachmentLinks: false, |
88 | nsfwCensorImage: "/static/bildoj/konsterna.jpg", |
89 | postContentType: "text/plain", |
90 | redirectRootLogin: "/main/friends", |
91 | redirectRootNoLogin: "/main/all", |
92 | scopeCopy: true, |
93 | sidebarRight: false, |
94 | showFeaturesPanel: true, |
95 | showInstanceSpecificPanel: true, |
96 | subjectLineBehavior: "email", |
97 | theme: "malvo", |
98 | webPushNotifications: false |
99 | } |
100 |
|
101 |
|
102 | config :pleroma, :markup, |
103 | allow_inline_images: true, |
104 | allow_headings: true, |
105 | allow_tables: true, |
106 | allow_fonts: false, |
107 | scrub_policy: [ |
108 | Pleroma.HTML.Scrubber.Default, |
109 | Pleroma.HTML.Transform.MediaProxy |
110 | ] |
111 |
|
112 |
|
113 | config :pleroma, :mrf, |
114 | policies: [ |
115 | Pleroma.Web.ActivityPub.MRF.AntiLinkSpamPolicy, Pleroma.Web.ActivityPub.MRF.SimplePolicy |
116 | ] |
117 |
|
118 | import_config "blokoj.exs" |