migrate from pubtester.local to pubtester.example.net

close #1
This commit is contained in:
Luna 2023-01-22 18:48:42 -03:00
parent 5ea0205138
commit 66f16288fc
3 changed files with 35 additions and 18 deletions

View File

@ -10,8 +10,8 @@ mastodon is TODO.
add the following to your `/etc/hosts` add the following to your `/etc/hosts`
``` ```
127.0.0.1 pleroma.pubtester.local localhost 127.0.0.1 pleroma.pubtester.example.net localhost
127.0.0.1 pleroma2.pubtester.local localhost 127.0.0.1 pleroma2.pubtester.example.net localhost
``` ```
run run
@ -20,3 +20,20 @@ git clone ... && cd pubtester
./pleroma_setup.sh ./pleroma_setup.sh
docker-compose up -d pleroma_web pleroma2_web nginx docker-compose up -d pleroma_web pleroma2_web nginx
``` ```
then go to `https://pleroma.pubtester.example.net:20000/main/friends`
and also `https://pleroma2.pubtester.example.net:20000/main/friends`
## emit new minica certs
this is generally for myself: https://github.com/jsha/minica
`minica -domains 'pubtester.example.net,*.pubtester.example.net'`
## wipe everything
```
sudo rm -rfv ./data
./pleroma_setup.sh
```

View File

@ -6,14 +6,12 @@ services:
healthcheck: healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres'] test: ['CMD', 'pg_isready', '-U', 'postgres']
volumes: volumes:
- ./data/pleroma/postgres14:/var/lib/postgresql/data - ./data/pleroma/postgres15:/var/lib/postgresql/data
environment: environment:
- 'POSTGRES_HOST_AUTH_METHOD=trust' - 'POSTGRES_HOST_AUTH_METHOD=trust'
- 'POSTGRES_USER=pleroma' - 'POSTGRES_USER=pleroma'
- 'POSTGRES_PASSWORD=very_secure_pleroma_password' - 'POSTGRES_PASSWORD=very_secure_pleroma_password'
- 'POSTGRES_DB=pleroma' - 'POSTGRES_DB=pleroma'
#pleroma:
# image: git.pleroma.social:5050/pleroma/pleroma:release-2-4-1
pleroma_web: pleroma_web:
image: pleroma_selfbuilt image: pleroma_selfbuilt
@ -39,7 +37,7 @@ services:
- ./data/pleroma/static:/var/lib/pleroma/static - ./data/pleroma/static:/var/lib/pleroma/static
- ./files/pleroma.exs:/etc/pleroma/config.exs:ro - ./files/pleroma.exs:/etc/pleroma/config.exs:ro
environment: environment:
DOMAIN: pleroma.pubtester.local DOMAIN: pleroma.pubtester.example.net
INSTANCE_NAME: Pleroma/pubtester INSTANCE_NAME: Pleroma/pubtester
ADMIN_EMAIL: admin@example.com ADMIN_EMAIL: admin@example.com
NOTIFY_EMAIL: notify@example.com NOTIFY_EMAIL: notify@example.com
@ -55,13 +53,14 @@ services:
healthcheck: healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres'] test: ['CMD', 'pg_isready', '-U', 'postgres']
volumes: volumes:
- ./data/pleroma2/postgres14:/var/lib/postgresql/data - ./data/pleroma2/postgres15:/var/lib/postgresql/data
environment: environment:
- 'POSTGRES_HOST_AUTH_METHOD=trust' - 'POSTGRES_HOST_AUTH_METHOD=trust'
- 'POSTGRES_USER=pleroma' - 'POSTGRES_USER=pleroma'
- 'POSTGRES_PASSWORD=very_secure_pleroma_password' - 'POSTGRES_PASSWORD=very_secure_pleroma_password'
- 'POSTGRES_DB=pleroma' - 'POSTGRES_DB=pleroma'
pleroma2_web: pleroma2_web:
# use pleroma_source_selfbuilt if patching pleroma
image: pleroma_selfbuilt image: pleroma_selfbuilt
healthcheck: healthcheck:
test: test:
@ -74,8 +73,6 @@ services:
- '127.0.0.1:20710:4000' - '127.0.0.1:20710:4000'
build: build:
context: . context: .
# Feel free to remove or override this section
# See 'Build-time variables' in README.md
args: args:
- "UID=1000" - "UID=1000"
- "GID=1000" - "GID=1000"
@ -83,9 +80,12 @@ services:
volumes: volumes:
- ./data/pleroma2/uploads:/var/lib/pleroma/uploads - ./data/pleroma2/uploads:/var/lib/pleroma/uploads
- ./data/pleroma2/static:/var/lib/pleroma/static - ./data/pleroma2/static:/var/lib/pleroma/static
- ./files/pleroma.exs:/etc/pleroma/config.exs:ro - ./files/pleroma.exs:/pleroma/config/prod.secret.exs:ro
# dev patches
#- /home/luna/git/pleroma/lib/pleroma/formatter.ex:/pleroma/lib/pleroma/formatter.ex:ro
#- /home/luna/git/pleroma/deps/linkify/lib/linkify/parser.ex:/pleroma/deps/linkify/lib/linkify/parser.ex:ro
environment: environment:
DOMAIN: pleroma2.pubtester.local DOMAIN: pleroma2.pubtester.example.net
INSTANCE_NAME: Pleroma/pubtester2 INSTANCE_NAME: Pleroma/pubtester2
ADMIN_EMAIL: admin@example.com ADMIN_EMAIL: admin@example.com
NOTIFY_EMAIL: notify@example.com NOTIFY_EMAIL: notify@example.com
@ -163,12 +163,12 @@ services:
networks: networks:
default: default:
aliases: aliases:
- pleroma.pubtester.local - pleroma.pubtester.example.net
- pleroma2.pubtester.local - pleroma2.pubtester.example.net
volumes: volumes:
- ./files/nginx.conf:/etc/nginx/nginx.conf:ro - ./files/nginx.conf:/etc/nginx/nginx.conf:ro
- ./pubtester.local/cert.pem:/etc/nginx/cert.pem:ro - ./pubtester.example.net/cert.pem:/etc/nginx/cert.pem:ro
- ./pubtester.local/key.pem:/etc/nginx/key.pem:ro - ./pubtester.example.net/key.pem:/etc/nginx/key.pem:ro
ports: ports:
- '127.0.0.1:20000:443' - '127.0.0.1:20000:443'
depends_on: depends_on:

View File

@ -36,7 +36,7 @@ http {
# root /mnt/none; # root /mnt/none;
# index index.html index.htm; # index index.html index.htm;
# server_name mastodon.pubtester.local; # server_name mastodon.pubtester.example.net;
# absolute_redirect off; # absolute_redirect off;
# server_name_in_redirect off; # server_name_in_redirect off;
@ -73,7 +73,7 @@ http {
root /mnt/none; root /mnt/none;
index index.html index.htm; index index.html index.htm;
server_name pleroma.pubtester.local; server_name pleroma.pubtester.example.net;
absolute_redirect off; absolute_redirect off;
server_name_in_redirect off; server_name_in_redirect off;
@ -98,7 +98,7 @@ http {
root /mnt/none; root /mnt/none;
index index.html index.htm; index index.html index.htm;
server_name pleroma2.pubtester.local; server_name pleroma2.pubtester.example.net;
absolute_redirect off; absolute_redirect off;
server_name_in_redirect off; server_name_in_redirect off;