<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.jordan-lenuff.com/index.php?action=history&amp;feed=atom&amp;title=Outillage%2FMercure%2FInstallation</id>
	<title>Outillage/Mercure/Installation - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jordan-lenuff.com/index.php?action=history&amp;feed=atom&amp;title=Outillage%2FMercure%2FInstallation"/>
	<link rel="alternate" type="text/html" href="https://wiki.jordan-lenuff.com/index.php?title=Outillage/Mercure/Installation&amp;action=history"/>
	<updated>2026-04-23T16:54:11Z</updated>
	<subtitle>Historique des révisions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://wiki.jordan-lenuff.com/index.php?title=Outillage/Mercure/Installation&amp;diff=1362&amp;oldid=prev</id>
		<title>Jordan : /* Création du script d'exécution */</title>
		<link rel="alternate" type="text/html" href="https://wiki.jordan-lenuff.com/index.php?title=Outillage/Mercure/Installation&amp;diff=1362&amp;oldid=prev"/>
		<updated>2022-01-10T15:08:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Création du script d&amp;#039;exécution&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Version du 10 janvier 2022 à 15:08&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l181&quot; &gt;Ligne 181 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 181 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;source ../conf/EnvironmentFile&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;source ../conf/EnvironmentFile&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;set +o allexport&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;set +o allexport&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MERCURE_PUBLISHER_JWT_KEY=$(cat ../conf/publisher.key.pub) \&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MERCURE_PUBLISHER_JWT_KEY=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\&lt;/ins&gt;$(cat ../conf/publisher.key.pub) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\&lt;/ins&gt;\&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MERCURE_SUBSCRIBER_JWT_KEY=$(cat ../conf/subscriber.key.pub) \&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MERCURE_SUBSCRIBER_JWT_KEY=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\&lt;/ins&gt;$(cat ../conf/subscriber.key.pub) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\&lt;/ins&gt;\&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;./mercure run&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;./mercure run&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;EOF&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;EOF&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_db:diff::1.12:old-1333:rev-1362 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jordan</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.jordan-lenuff.com/index.php?title=Outillage/Mercure/Installation&amp;diff=1333&amp;oldid=prev</id>
		<title>Jordan : /* Création de l'utilisateur Mercure */</title>
		<link rel="alternate" type="text/html" href="https://wiki.jordan-lenuff.com/index.php?title=Outillage/Mercure/Installation&amp;diff=1333&amp;oldid=prev"/>
		<updated>2022-01-06T19:18:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Création de l&amp;#039;utilisateur Mercure&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Version du 6 janvier 2022 à 19:18&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l35&quot; &gt;Ligne 35 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 35 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Création de l'utilisateur Mercure===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Création de l'utilisateur Mercure===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mercure sera lancé en tant que service. Pour des questions de sécurité, il ne faut pas que l'utilisateur sous lequel sera exécuté le service puisse ouvrir de session. Pour créer un utilisateur système ne pouvant pas ouvrir de session, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;lancé &lt;/del&gt;la commande suivante :&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mercure sera lancé en tant que service. Pour des questions de sécurité, il ne faut pas que l'utilisateur sous lequel sera exécuté le service puisse ouvrir de session. Pour créer un utilisateur système ne pouvant pas ouvrir de session, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;lancer &lt;/ins&gt;la commande suivante :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  useradd -r -s /sbin/nologin -d /opt/mercure/conf mercure&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  useradd -r -s /sbin/nologin -d /opt/mercure/conf mercure&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_db:diff::1.12:old-1332:rev-1333 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jordan</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.jordan-lenuff.com/index.php?title=Outillage/Mercure/Installation&amp;diff=1332&amp;oldid=prev</id>
		<title>Jordan le 6 janvier 2022 à 16:20</title>
		<link rel="alternate" type="text/html" href="https://wiki.jordan-lenuff.com/index.php?title=Outillage/Mercure/Installation&amp;diff=1332&amp;oldid=prev"/>
		<updated>2022-01-06T16:20:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.jordan-lenuff.com/index.php?title=Outillage/Mercure/Installation&amp;amp;diff=1332&amp;amp;oldid=1329&quot;&gt;Voir les modifications&lt;/a&gt;</summary>
		<author><name>Jordan</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.jordan-lenuff.com/index.php?title=Outillage/Mercure/Installation&amp;diff=1329&amp;oldid=prev</id>
		<title>Jordan : Page créée avec « ==Page à l'état de brouillon (à finaliser)== &lt;syntaxhighlight lang=&quot;bash&quot;&gt; mkdir -p /opt/mercure/{mercure-0.13.0,conf,run,log} useradd -r -s /sbin/nologin -d /opt/mercu… »</title>
		<link rel="alternate" type="text/html" href="https://wiki.jordan-lenuff.com/index.php?title=Outillage/Mercure/Installation&amp;diff=1329&amp;oldid=prev"/>
		<updated>2021-12-15T17:28:11Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « ==Page à l&amp;#039;état de brouillon (à finaliser)== &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; mkdir -p /opt/mercure/{mercure-0.13.0,conf,run,log} useradd -r -s /sbin/nologin -d /opt/mercu… »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Page à l'état de brouillon (à finaliser)==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir -p /opt/mercure/{mercure-0.13.0,conf,run,log}&lt;br /&gt;
useradd -r -s /sbin/nologin -d /opt/mercure/conf mercure&lt;br /&gt;
usermod -g www mercure&lt;br /&gt;
ln -s mercure-0.13.0 /opt/mercure/current&lt;br /&gt;
wget https://github.com/dunglas/mercure/releases/download/v0.13.0/mercure_0.13.0_Linux_x86_64.tar.gz&lt;br /&gt;
tar -zxf mercure_0.13.0_Linux_x86_64.tar.gz -C /opt/mercure/mercure-0.13.0&lt;br /&gt;
cd /opt/mercure/conf&lt;br /&gt;
ssh-keygen -t rsa -b 4096 -m PEM -f publisher.key -q -N &amp;quot;&amp;quot;&lt;br /&gt;
openssl rsa -in publisher.key -pubout -outform PEM -out publisher.key.pub&lt;br /&gt;
ssh-keygen -t rsa -b 4096 -m PEM -f subscriber.key -q -N &amp;quot;&amp;quot;&lt;br /&gt;
openssl rsa -in subscriber.key -pubout -outform PEM -out subscriber.key.pub&lt;br /&gt;
MERCURE_PUBLISHER_JWT_KEY=$(cat publisher.key.pub|sed 's/$/\\/')&lt;br /&gt;
MERCURE_SUBSCRIBER_JWT_KEY=$(cat subscriber.key.pub|sed 's/$/\\/')&lt;br /&gt;
&lt;br /&gt;
cat &amp;lt;&amp;lt;EOF&amp;gt; EnvironmentFile&lt;br /&gt;
GLOBAL_OPTIONS=&amp;quot;admin :2019&amp;quot;&lt;br /&gt;
SERVER_NAME=&amp;quot;:2020&amp;quot;&lt;br /&gt;
MERCURE_PUBLISHER_JWT_KEY=${MERCURE_PUBLISHER_JWT_KEY}&lt;br /&gt;
MERCURE_PUBLISHER_JWT_ALG=RS256&lt;br /&gt;
MERCURE_SUBSCRIBER_JWT_KEY=${MERCURE_SUBSCRIBER_JWT_KEY}&lt;br /&gt;
MERCURE_SUBSCRIBER_JWT_ALG=RS256&lt;br /&gt;
MERCURE_EXTRA_DIRECTIVES=&amp;quot;ui&amp;quot;&lt;br /&gt;
EOF&lt;br /&gt;
chown -R mercure /opt/mercure&lt;br /&gt;
&lt;br /&gt;
cat &amp;lt;&amp;lt;EOF&amp;gt; /etc/systemd/system/mercure.service&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Mercure.Rocks service&lt;br /&gt;
After=network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
UMask=0007&lt;br /&gt;
User=mercure&lt;br /&gt;
WorkingDirectory=/opt/mercure/current&lt;br /&gt;
EnvironmentFile=/opt/mercure/conf/EnvironmentFile&lt;br /&gt;
ExecStart=/opt/mercure/current/mercure run&lt;br /&gt;
Restart=always&lt;br /&gt;
RestartSec=5&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&lt;br /&gt;
EOF&lt;br /&gt;
chmod o+r /etc/systemd/system/mercure.service&lt;br /&gt;
systemctl daemon-reload&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jordan</name></author>
		
	</entry>
</feed>