|
|
@@ -6,6 +6,8 @@ defmodule Mix.Tasks.Pleroma.Instance do |
|
|
|
use Mix.Task |
|
|
|
import Mix.Pleroma |
|
|
|
|
|
|
|
alias Pleroma.Config |
|
|
|
|
|
|
|
@shortdoc "Manages Pleroma instance" |
|
|
|
@moduledoc File.read!("docs/administration/CLI_tasks/instance.md") |
|
|
|
|
|
|
@@ -153,6 +155,8 @@ defmodule Mix.Tasks.Pleroma.Instance do |
|
|
|
Pleroma.Config.get([:instance, :static_dir]) |
|
|
|
) |
|
|
|
|
|
|
|
Config.put([:instance, :static_dir], static_dir) |
|
|
|
|
|
|
|
secret = :crypto.strong_rand_bytes(64) |> Base.encode64() |> binary_part(0, 64) |
|
|
|
jwt_secret = :crypto.strong_rand_bytes(64) |> Base.encode64() |> binary_part(0, 64) |
|
|
|
signing_salt = :crypto.strong_rand_bytes(8) |> Base.encode64() |> binary_part(0, 8) |
|
|
|