mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
add nostr publishing
This commit is contained in:
@@ -2,6 +2,7 @@ FROM ubuntu:22.04
|
||||
|
||||
LABEL maintainer="Taylor Otwell"
|
||||
|
||||
ARG NOSTR_PRIVATE_KEY
|
||||
ARG WWWGROUP
|
||||
ARG NODE_VERSION=18
|
||||
ARG POSTGRES_VERSION=14
|
||||
@@ -14,7 +15,7 @@ ENV TZ=UTC
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 dnsutils \
|
||||
&& apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 dnsutils golang wget \
|
||||
&& curl -sS 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x14aa40ec0831756756d7f66c4f4ea0aae5267a6c' | gpg --dearmor | tee /etc/apt/keyrings/ppa_ondrej_php.gpg > /dev/null \
|
||||
&& echo "deb [signed-by=/etc/apt/keyrings/ppa_ondrej_php.gpg] https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy main" > /etc/apt/sources.list.d/ppa_ondrej_php.list \
|
||||
&& apt-get update \
|
||||
@@ -48,6 +49,14 @@ RUN setcap "cap_net_bind_service=+ep" /usr/bin/php8.2
|
||||
RUN groupadd --force -g $WWWGROUP sail
|
||||
RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail
|
||||
|
||||
RUN wget https://github.com/fiatjaf/noscl/releases/download/v0.6.0/noscl -O /usr/local/bin/noscl \
|
||||
&& chmod +x /usr/local/bin/noscl \
|
||||
&& mkdir -p /home/sail/.config/nostr
|
||||
COPY nostr.json /home/sail/.config/nostr/config.json
|
||||
RUN chown -R sail:sail /home/sail/.config
|
||||
RUN sed -i 's/NOSTR_PRIVATE_KEY/'"$NOSTR_PRIVATE_KEY"'/g' /home/sail/.config/nostr/config.json
|
||||
# noscl publish "Publish event from https://portal.einundzwanzig.portal - developing a bot for Einundzwanzig Portal"
|
||||
|
||||
COPY start-container /usr/local/bin/start-container
|
||||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
COPY php.ini /etc/php/8.2/cli/conf.d/99-sail.ini
|
||||
|
||||
54
docker/8.2/nostr.json
Normal file
54
docker/8.2/nostr.json
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"relays": {
|
||||
"wss://nostr.einundzwanzig.space": {
|
||||
"read": true,
|
||||
"write": true
|
||||
},
|
||||
"wss://nostr.mom": {
|
||||
"read": true,
|
||||
"write": true
|
||||
},
|
||||
"wss://nostr.fmt.wiz.biz": {
|
||||
"read": true,
|
||||
"write": true
|
||||
},
|
||||
"wss://relay.damus.io": {
|
||||
"read": true,
|
||||
"write": true
|
||||
},
|
||||
"wss://nostr-pub.wellorder.net": {
|
||||
"read": true,
|
||||
"write": true
|
||||
},
|
||||
"wss://relay.nostr.info": {
|
||||
"read": true,
|
||||
"write": true
|
||||
},
|
||||
"wss://offchain.pub": {
|
||||
"read": true,
|
||||
"write": true
|
||||
},
|
||||
"wss://nos.lol": {
|
||||
"read": true,
|
||||
"write": true
|
||||
},
|
||||
"wss://brb.io": {
|
||||
"read": true,
|
||||
"write": true
|
||||
},
|
||||
"wss://relay.snort.social": {
|
||||
"read": true,
|
||||
"write": true
|
||||
},
|
||||
"wss://relay.current.fyi": {
|
||||
"read": true,
|
||||
"write": true
|
||||
},
|
||||
"wss://nostr.relayer.se": {
|
||||
"read": true,
|
||||
"write": true
|
||||
}
|
||||
},
|
||||
"following": null,
|
||||
"privatekey": "NOSTR_PRIVATE_KEY"
|
||||
}
|
||||
Reference in New Issue
Block a user