User Tools

Site Tools


prod.secret.exs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

prod.secret.exs [2020/01/06 00:36] (current)
admin created
Line 1: Line 1:
 +Here is the Pleroma config in use at https://​nsfw.social in the hopes it helps other instance admins out. Sensitive information has been redacted. :-)
  
 +<​code>​
 +# Pleroma instance configuration
 +
 +# NOTE: This file should not be committed to a repo or otherwise made public
 +# without removing sensitive information.
 +
 +import Config
 +
 +#
 +# Chnaged by GME on 12/14/2019 to enable NSFW image previews in Twitter, etc.
 +#
 +config :pleroma, Pleroma.Web.Metadata,​
 +  providers: [
 +    Pleroma.Web.Metadata.Providers.OpenGraph,​
 +    Pleroma.Web.Metadata.Providers.TwitterCard,​
 +    Pleroma.Web.Metadata.Providers.RelMe
 +  ],
 +  unfurl_nsfw:​ true
 +
 +config :pleroma, Pleroma.Captcha,​ seconds_valid:​ 60, method: Pleroma.Captcha.Native,​ enabled: false
 +
 +config :pleroma, :​frontend_configurations,​
 +  pleroma_fe: %{
 +    redirectRootNoLogin:​ "/​main/​public",​
 +  }
 +
 +config :​web_push_encryption,​ :​vapid_details,​
 +  subject: "​mailto:​nsfw@bofhllc.net",​
 +  public_key: "​REDACTED",​
 +  private_key:​ "​REDACTED"​
 +
 +config :pleroma, Pleroma.Web.Endpoint,​
 +   url: [host: "​nsfw.social",​ scheme: "​https",​ port: 443],
 +   http: [ip: {127, 0, 0, 1}, port: 4000],
 +   ​secret_key_base:​ "​REDACTED",​
 +   ​signing_salt:​ "​REDACTED"​
 +
 +config :pleroma, :​mrf_simple,​
 +  reject: [
 + "​anime.website", ​
 + "​gab.com", ​
 + "​shitposter.club", ​
 + "​shitpost.institute", ​
 + "​spinster.xyz", ​
 + "​freespeechextremist.com", ​
 + "​neckbeard.xyz"​
 +  ],
 +  federated_timeline_removal:​ [
 + "​xn--qp9h.ml",​
 + "​mstdn.foxfam.club",​
 + "​qoto.org",​
 + "​majak.de",​
 + "​soc.ialis.me",​
 + "​cryptids.online",​
 + "​anticapitalist.party",​
 + "​anarchism.space",​
 + "​efdn.club",​
 + "​jorts.horse",​
 + "​radical.town",​
 + "​mastodon.host", ​
 + "​todon.nl", ​
 + "​mstdn.foxfam.club", ​
 + "​mstdn.social", ​
 + "​equestria.social", ​
 + "​lgbt.io", ​
 + "​social.masto.host", ​
 + "​blob.cat", ​
 + "​kawen.space", ​
 + "​botsin.space", ​
 + "​cybre.space", ​
 + "​hellsite.site", ​
 + "​quey.org", ​
 + "​carrot.army", ​
 + "​kawen.space", ​
 + "​prout.social", ​
 + "​abdl.link", ​
 + "​imastodon.net", ​
 + "​social.mikutter.hachune.net", ​
 + "​pawoo.net", ​
 + "​baraag.net", ​
 + "​pl.smuglo.li"​
 +  ],
 +  media_removal:​ [],
 +  media_nsfw: [
 + "​abdl.link", ​
 + "​nsfw.social", ​
 + "​sinblr.com", ​
 + "​switter.at", ​
 + "​baraag.net", ​
 + "​pl.smuglo.li"​
 +  ]
 +
 +config :pleroma, Pleroma.Emails.Mailer,​ adapter: Swoosh.Adapters.Sendmail,​ enabled: true
 +
 +config :pleroma, :​email_notifications,​
 +  digest: %{
 +    active: true,
 +    schedule: "0 0 * * 0",
 +    interval: 7,
 +    inactivity_threshold:​ 7
 +  }
 +
 +config :pleroma, :​media_proxy,​ enabled: false, redirect_on_failure:​ true 
 +
 +config :pleroma, Pleroma.Repo,​ adapter: Ecto.Adapters.Postgres,​ username: "​REDACTED",​ password: "​REDACTED",​ database: "​pleroma",​ hostname: "​REDACTED",​ port: 5432, pool_size: 10
 +
 +config :​web_push_encryption,​ :​vapid_details, ​
 +  subject: "​mailto:​nsfw@bofhllc.net", ​
 +  public_key: "​REDACTED",​
 +  private_key:​ "​REDACTED"​
 +
 +config :pleroma, :database, rum_enabled:​ true
 +
 +config :pleroma, :instance, static_dir: "​instance/​static/"​
 +
 +config :pleroma, Pleroma.Upload,​ uploader: Pleroma.Uploaders.S3
 +
 +#config :pleroma, Pleroma.Uploaders.S3,​ bucket: "​nsfw.pleroma.bofhllc",​ public_endpoint:​ "​https://​s3.us-east-2.wasabisys.com"​
 +config :pleroma, Pleroma.Uploaders.S3,​ bucket: "​nsfw.pleroma.bofhllc",​ public_endpoint:​ "​https://​nsfw.social"​
 +
 +config :ex_aws, :s3, 
 +  access_key_id:​ "​REDACTED", ​
 +  secret_access_key:​ "​REDACTED", ​
 +  region: "​us-east-2", ​
 +  scheme: "​https://",​
 +  host: "​s3.us-east-2.wasabisys.com"​
 +
 +config :pleroma, :​suggestions, ​
 +  enabled: true, 
 +  third_party_engine:​ "​http://​vinayaka.distsn.org/​cgi-bin/​vinayaka-user-match-suggestions-api.cgi?​{{host}}+{{user}}", ​
 +  timeout: 300_000, ​
 +  limit: 40, 
 +  web: "​https://​vinayaka.distsn.org"​
 +
 +config :​joken, ​
 +  default_signer:​ "​REDACTED"​
 +
 +#
 +# Changed by GME on 11/1/2019 to set configuration values
 +# Changed by mjc on 11/7/2019 to add welcome user, welcome message, etc.
 +#
 +config :pleroma, :instance,
 +  rewrite_policy:​ [Pleroma.Web.ActivityPub.MRF.SimplePolicy],​
 +  name: "​Social NSFW",
 +  email: "​nsfw@bofhllc.net",​
 +  notify_email:​ "​no-reply@nsfw.social",​
 +  extended_nickname_format:​ true,
 +  limit: 5000,
 +  healthcheck:​ true,
 +  upload_limit:​ 32_000_000,
 +  welcome_user_nickname:​ "​guide",​
 +  welcome_message:​ "Hi! Welcome to nsfw.social! We're hoping to create the best #nsfw social network on the fediverse!
 +  ​
 +You can find more information about this instance, and how to use this site and the '​federation'​ in general by visiting our Guide account. Just click on my username to be taken there and for more information.
 +  ​
 +If you need help, please don't hesitate to reach out to our dedicated @help account which is staffed by volunteers.
 +  ​
 +Our @staff account will get you in contact with one of the folks that actually run the site.
 +  ​
 +This account (@guide) will periodically post news, tips, and announcements that we think you might be interested in.
 +  ​
 +And if you're up for it, you are welcome to join our chat-room at https://​matrix.to/#/​!atbAaKHWatdZLbUgYf:​matrix.org?​via=matrix.org.
 +  ​
 +Thanks for joining, and we're glad you're here!",​
 +  autofollowed_nicknames:​ ["​guide",​ "​admin",​ "​staff",​ "​help"​],​
 +  max_pinned_statuses:​ 4,
 +  no_attachment_links:​ true,
 +  description:​ "<​em>​Not just <a href='​https://​nsfw.social/​tag/​porn'>#​porn</​a>;​ if it's Not Safe For Work, it's welcome!</​em><​br /> An uncensored, <a href='​https://​nsfw.social/​tag/​nsfw'>#​nsfw</​a>,​ Pleroma instance where <​strong>​anything goes</​strong>​ as long as its legal and doesn'​t violate our TOS. <br />More info at <a href='​https://​info.nsfw.social'>​info.nsfw.social</​a>​.",​
 +  registrations_open:​ true
 +
 +</​code>​
prod.secret.exs.txt ยท Last modified: 2020/01/06 00:36 by admin