<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/atom.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:fh="http://purl.org/syndication/history/1.0">
  <title>Posts tagged: postiz Archive</title>
  <id>https://pype.dev/tags/postiz/archive/atom.xml</id>
  <updated>2025-07-06T08:42:44Z</updated>
  <subtitle>All posts with the tag &#34;postiz&#34;</subtitle>
  <link href="https://pype.dev/tags/postiz/" rel="alternate" type="text/html"></link>
  <link href="https://pype.dev/tags/postiz/archive/atom.xml" rel="self" type="application/atom+xml"></link>
  <link href="https://pype.dev/tags/postiz/atom.xml" rel="current" type="application/atom+xml"></link>
  <author>
    <name>Nic Payne</name>
  </author>
  <generator uri="https://github.com/WaylonWalker/markata-go">markata-go</generator>
  <fh:complete></fh:complete>
  <entry>
    <title>Testing a Postiz Change Locally (IT WORKS!)</title>
    <id>https://pype.dev/testing-a-postiz-change-locally/</id>
    <updated>2025-07-06T08:42:44Z</updated>
    <published>2025-07-06T08:42:44Z</published>
    <link href="https://pype.dev/testing-a-postiz-change-locally/" rel="alternate" type="text/html"></link>
    <summary type="text">I am working on a pipeline at home to integrate my blog with social media a little more. One of the things I want to do is automatically post my-thoughts to...</summary>
    <content type="html">&lt;h2 id=&#34;setup&#34;&gt;&lt;span class=&#34;heading-wear-glyph&#34;&gt;Setup&lt;/span&gt; &lt;a href=&#34;#setup&#34; class=&#34;heading-anchor&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;I am working on a pipeline at home to integrate my blog with social media a&#xA;little more. One of the things I want to do is automatically post&#xA;[[my-thoughts]] to &lt;a href=&#34;/nostr/&#34; class=&#34;wikilink&#34; data-title=&#34;Nostr&#34; data-description=&#34;???+ note &amp;#34;How to start...&amp;#34;&#34; data-date=&#34;2025-07-02&#34; data-preview=&#34;???+ note &amp;#34;How to start...&amp;#34;&#34;&gt;Nostr&lt;/a&gt;. &lt;a href=&#34;/tags/postiz/&#34; class=&#34;wikilink&#34; data-title=&#34;Posts tagged: postiz&#34; data-description=&#34;All posts with the tag &amp;#34;postiz&amp;#34;&#34; data-preview=&#34;All posts with the tag &amp;#34;postiz&amp;#34;&#34;&gt;Posts tagged: postiz&lt;/a&gt; has nostr support that works just fine - login&#xA;with your &lt;a href=&#34;/nostr-hex-key/&#34; class=&#34;wikilink&#34; data-title=&#34;Nostr hex key&#34; data-description=&#34;you can hexify your nostr key when you need to sometimes which I needed to for postiz (link with a thought I&amp;#39;m sure I have on postiz)&#34; data-date=&#34;2025-07-02&#34; data-preview=&#34;you can hexify your nostr key when you need to sometimes which I needed to for postiz (link with a thought I&amp;#39;m sure I have on postiz)&#34;&gt;Nostr hex key&lt;/a&gt; and you&amp;rsquo;re good to go to post notes to several of&#xA;the common relays. However for my testing I just wanted to post to a&#xA;&lt;a href=&#34;https://github.com/scsibug/nostr-rs-relay&#34;&gt;self-hosetd nostr relay&lt;/a&gt;&#xA;but there wasn&amp;rsquo;t a way to override which relays were used. Well I submitted &lt;a href=&#34;https://github.com/gitroomhq/postiz-app/pull/824&#34;&gt;this pr&lt;/a&gt;&#xA;and hopefully it goes through. But before it did I was able to test the changes&#xA;by simply building the postiz image from my feature branch and deploying it at&#xA;home in leiu of the published image. It was super cool to see it work&lt;/p&gt;&#xA;&lt;h2 id=&#34;build-and-deploy&#34;&gt;&lt;span class=&#34;heading-wear-glyph&#34;&gt;Build and Deploy&lt;/span&gt; &lt;a href=&#34;#build-and-deploy&#34; class=&#34;heading-anchor&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;The build was easy after cloning the repo - I happened to already have &lt;code&gt;buildx&lt;/code&gt; installed&amp;hellip; it came with &lt;a href=&#34;https://docs.getaurora.dev/&#34;&gt;aurora&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;docker buildx build --platform linux/amd64 -f Dockerfile.dev -t registry.example.com/gitroomhq/postiz-app:nostr-test .&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;After building then I just update my compose file easy-peasy&lt;/p&gt;&#xA;&lt;pre class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;services&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;postiz&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;# updated the image to my own from my registry&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;image&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;resitry.example.com/gitroomhq/postiz-app:latest&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;container_name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;postiz&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;restart&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;always&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;env_file&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;.env&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c&#34;&gt;#####################&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c&#34;&gt;### REST OF COMPOSE FILE FROM THEIR REPO&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;pics&#34;&gt;&lt;span class=&#34;heading-wear-glyph&#34;&gt;Pics&lt;/span&gt; &lt;a href=&#34;#pics&#34; class=&#34;heading-anchor&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;To test this my methodlogy was: 0. spin up nostr relay&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;start postiz with my NOSTR_RELAY_OVERRIDES configuration for only my local relay&lt;/li&gt;&#xA;&lt;li&gt;use an existing script to schedule a nostr post via the postiz REST API&lt;/li&gt;&#xA;&lt;li&gt;use the UI to send the note to nostr&lt;/li&gt;&#xA;&lt;li&gt;validate the note came through my relay&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;So step 1 - does my script to schedule via the REST API work?&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;postiz  | [0] 1|backend  | {&#xA;postiz  | [0] 1|backend  |   &amp;quot;type&amp;quot;: &amp;quot;draft&amp;quot;,&#xA;postiz  | [0] 1|backend  |   &amp;quot;shortLink&amp;quot;: false,&#xA;postiz  | [0] 1|backend  |   &amp;quot;tags&amp;quot;: [],&#xA;postiz  | [0] 1|backend  |   &amp;quot;posts&amp;quot;: [&#xA;postiz  | [0] 1|backend  |     {&#xA;postiz  | [0] 1|backend  |       &amp;quot;integration&amp;quot;: {&#xA;postiz  | [0] 1|backend  |         &amp;quot;id&amp;quot;: &amp;quot;cmbgf5oko0001ra99r9vzv1fj&amp;quot;&#xA;postiz  | [0] 1|backend  |       },&#xA;postiz  | [0] 1|backend  |       &amp;quot;value&amp;quot;: [&#xA;postiz  | [0] 1|backend  |         {&#xA;postiz  | [0] 1|backend  |           &amp;quot;content&amp;quot;: &amp;quot;\nHere&#39;s a thought I had a while back:\n\n&amp;gt; matduggan.com/what-would-a-kubernetes-2-0-look-like/\n\nThis article was longer than I had time to really consume but a heading caught my eye that I wanted to agree with - the author says k8s 2.0 may consider HCL instead of YAML. And as a recent terraform / open-tofu adopter I gotta say I would be ALL FOR THIS\n\nHere&#39;s the original link for more context: https://matduggan.com/what-would-a-kubernetes-2-0-look-like/\n        \n\n# devops # tech #k8s #nostr #plebchain&amp;quot;,&#xA;postiz  | [0] 1|backend  |           &amp;quot;image&amp;quot;: []&#xA;postiz  | [0] 1|backend  |         }&#xA;postiz  | [0] 1|backend  |       ]&#xA;postiz  | [0] 1|backend  |     }&#xA;postiz  | [0] 1|backend  |   ],&#xA;postiz  | [0] 1|backend  |   &amp;quot;date&amp;quot;: &amp;quot;2025-07-02T13:27:07.028Z&amp;quot;&#xA;postiz  | [0] 1|backend  | }&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;details class=&#34;admonition success&#34; open&gt;&#xA;&lt;summary class=&#34;admonition-title&#34;&gt;Success&lt;/summary&gt;&#xA;&lt;p&gt;After the first step my local build looks to have not broken this part of the app!&lt;/p&gt;&#xA;&lt;/details&gt;&#xA;&lt;p&gt;Next was spinning up my own nostr relay - it&amp;rsquo;s actually just &lt;code&gt;docker compose up&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;services&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;nostr-relay&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;image&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;nostr-rs-relay:latest&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;container_name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;nostr-relay&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;ports&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;- &lt;span class=&#34;s2&#34;&gt;&amp;#34;7000:8080&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;environment&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;TZ&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;America/Chicago&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;volumes&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;- &lt;span class=&#34;l&#34;&gt;./data:/usr/src/app/db&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;- &lt;span class=&#34;l&#34;&gt;./config.toml:/usr/src/app/config.toml&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;restart&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;unless-stopped&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Finally, can I send my note to my relay?&lt;/p&gt;&#xA;&lt;p&gt;I hit post in the UI and then checked coracle&amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;Yes! Using &lt;a href=&#34;https://coracle.social&#34;&gt;coracle.social&lt;/a&gt; I can verify that my note went to my relay only&lt;/p&gt;&#xA;&lt;figure&gt;&#xA;&lt;img src=&#34;https://cdn.statically.io/gh/pypeaday/images.pype.dev/main/blog-media/20250706122123_47b06d96.png&#34; alt=&#34;20250706122123_47b06d96.png&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&lt;h2 id=&#34;fin&#34;&gt;&lt;span class=&#34;heading-wear-glyph&#34;&gt;Fin&lt;/span&gt; &lt;a href=&#34;#fin&#34; class=&#34;heading-anchor&#34;&gt;#&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;So that was a fun way to get into postiz a little more and start to flesh out&#xA;what will be a testing-scenario for some pipelines I&amp;rsquo;m building at home&lt;/p&gt;&#xA;</content>
    <author>
      <name>Nic Payne</name>
      <uri>https://pype.dev</uri>
    </author>
  </entry>
</feed>