Merge branch 'release/1.0' into 'develop'
[akkoma] / mix.exs
diff --git a/mix.exs b/mix.exs
index cf413f12bf66b84126fe685ca66ce838fcc22f99..19a80ffb205a2e68e35442b82eb0474f88dd6c1b 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -37,7 +37,7 @@ defmodule Pleroma.Mixfile do
         pleroma: [
           include_executables_for: [:unix],
           applications: [ex_syslogger: :load, syslog: :load],
-          steps: [:assemble, &copy_files/1]
+          steps: [:assemble, &copy_files/1, &copy_nginx_config/1]
         ]
       ]
     ]
@@ -48,6 +48,15 @@ defmodule Pleroma.Mixfile do
     release
   end
 
+  def copy_nginx_config(%{path: target_path} = release) do
+    File.cp!(
+      "./installation/pleroma.nginx",
+      Path.join([target_path, "installation", "pleroma.nginx"])
+    )
+
+    release
+  end
+
   # Configuration for the OTP application.
   #
   # Type `mix help compile.app` for more information.