files modified

Este commit está contenido en:
Your Name
2020-08-23 12:06:04 +00:00
padre 6d21f3d243
commit bbc9877d45
Se han modificado 65 ficheros con 418 adiciones y 248 borrados

Ver fichero

@@ -44,7 +44,12 @@ $DOMAIN. IN TXT \"google-site-verification=OGwhD4vhFpXHvQsbJinxA
_dmarc IN TXT \"v=DMARC1;p=reject;rua=mailto:postmaster@$DOMAIN;pct=100;ruf=mailto:postmaster@$DOMAIN;sp=reject;aspf=s;adkim=s;ri=86400;fo=0;rf=afrf\" _dmarc IN TXT \"v=DMARC1;p=reject;rua=mailto:postmaster@$DOMAIN;pct=100;ruf=mailto:postmaster@$DOMAIN;sp=reject;aspf=s;adkim=s;ri=86400;fo=0;rf=afrf\"
_dnsaddr IN TXT \"dnsaddr=/ip4/82.223.3.135/tcp/4001/p2p/QmcLwDnTPuSuaBL6QyfPGWyrAjHZYonahiKPeYSAjcU25V\" _dnsaddr IN TXT \"dnsaddr=/ip4/82.223.3.135/tcp/4001/p2p/QmcLwDnTPuSuaBL6QyfPGWyrAjHZYonahiKPeYSAjcU25V\"
_dnsaddr IN TXT \"dnsaddr=/ip6/2001:ba0:1800:80e0::1/tcp/4001/p2p/QmcLwDnTPuSuaBL6QyfPGWyrAjHZYonahiKPeYSAjcU25V\" _dnsaddr IN TXT \"dnsaddr=/ip6/2001:ba0:1800:80e0::1/tcp/4001/p2p/QmcLwDnTPuSuaBL6QyfPGWyrAjHZYonahiKPeYSAjcU25V\"
_dnslink IN TXT \"dnslink=/ipns/QmcLwDnTPuSuaBL6QyfPGWyrAjHZYonahiKPeYSAjcU25V\" $DOMAIN. IN TXT \"dnslink=/ipns/hatthieves.es\"
_dnslink IN TXT \"dnslink=/ipns/k2k4r8olq17uslpwyedjx5o0g5azfq8inmw0fp1jh0xqm9zrcho3p5zk\"
_acme-challenge IN TXT \"56ICipwdln5gLbl_s82sUQl_8NjxHJLkMrJmAeOVX9c\"
_acme-challenge IN TXT \"paSCs9dPonZOzoQETYyMDfc8cyATdeD4FZZXdXSRc6U\"
_xmpp-client._tcp IN SRV 100 1 5222 xmpp.$DOMAIN.
_xmpp-server._tcp IN SRV 100 1 5269 xmpp.$DOMAIN.
$DKIM $DKIM
\$INCLUDE K$DOMAIN.+008+10060.key \$INCLUDE K$DOMAIN.+008+10060.key

Ver fichero

@@ -2,7 +2,7 @@ version: '2'
services: services:
elasticsearch: elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.8.0 image: docker.elastic.co/elasticsearch/elasticsearch:7.8.1
hostname: elasticsearch hostname: elasticsearch
container_name: elasticsearch container_name: elasticsearch
restart: always restart: always
@@ -31,7 +31,7 @@ services:
ipv4_address: 172.1.0.101 ipv4_address: 172.1.0.101
kibana: kibana:
image: docker.elastic.co/kibana/kibana:7.8.0 image: docker.elastic.co/kibana/kibana:7.8.1
hostname: kibana hostname: kibana
container_name: kibana container_name: kibana
restart: always restart: always
@@ -45,7 +45,7 @@ services:
ipv4_address: 172.1.0.102 ipv4_address: 172.1.0.102
logstash: logstash:
image: docker.elastic.co/logstash/logstash:7.8.0 image: docker.elastic.co/logstash/logstash:7.8.1
hostname: logstash hostname: logstash
container_name: logstash container_name: logstash
restart: always restart: always
@@ -64,7 +64,7 @@ services:
ipv4_address: 172.1.0.103 ipv4_address: 172.1.0.103
# filebeat: # filebeat:
# image: docker.elastic.co/beats/filebeat:7.8.0 # image: docker.elastic.co/beats/filebeat:7.8.1
# hostname: filebeat # hostname: filebeat
# container_name: filebeat # container_name: filebeat
# restart: always # restart: always

Ver fichero

@@ -1,4 +1,4 @@
FROM node:10-slim FROM node:12-slim
RUN npm i -g npm RUN npm i -g npm
RUN apt update && apt -y install git sudo && apt clean RUN apt update && apt -y install git sudo && apt clean
RUN git clone --depth 1 --branch master https://github.com/ether/etherpad-lite /etherpad RUN git clone --depth 1 --branch master https://github.com/ether/etherpad-lite /etherpad

Ver fichero

@@ -47,7 +47,7 @@ services:
ipv4_address: 172.200.0.102 ipv4_address: 172.200.0.102
mongo: mongo:
image: mongo image: mongo:4.2
hostname: mongo hostname: mongo
container_name: mongo container_name: mongo
restart: always restart: always

Ver fichero

@@ -11,7 +11,22 @@
"root@hatthieves.es": { "root@hatthieves.es": {
"action": "alias", "to": ["webmaster@hatthieves.es"] "action": "alias", "to": ["webmaster@hatthieves.es"]
}, },
"@social.hatthieves.es": { "@hatthieves.com": {
"action": "alias", "to": ["webmaster@hatthieves.es"]
},
"@hatthieves.co": {
"action": "alias", "to": ["webmaster@hatthieves.es"]
},
"@*.hatthieves.com": {
"action": "alias", "to": ["webmaster@hatthieves.es"]
},
"@*.hatthieves.co": {
"action": "alias", "to": ["webmaster@hatthieves.es"]
},
"@*.hatthieves.es": {
"action": "alias", "to": ["webmaster@hatthieves.es"]
},
"hola@hatthieves.es": {
"action": "alias", "to": ["webmaster@hatthieves.es"] "action": "alias", "to": ["webmaster@hatthieves.es"]
} }
} }

Ver fichero

@@ -1,2 +1,3 @@
;[main] ;[main]
host_list=hatthieves.es host_list=hatthieves.es,hatthieves.com,hatthieves.co
host_list_regex=*.hatthieves.es,*.hatthieves.com,*.hatthieves.co

Ver fichero

@@ -14,7 +14,7 @@ title="Wild Duck Mail - HatThieves.es"
allowJoin=false allowJoin=false
enableSpecial=true # if true the allow creating addresses with special usernames enableSpecial=true # if true the allow creating addresses with special usernames
# allowed domains for new addresses # allowed domains for new addresses
domains=["hatthieves.es"] domains=["hatthieves.es","hatthieves.com","hatthieves.co"]
generalNotification="" generalNotification=""
[api] [api]

Ver fichero

@@ -21,4 +21,4 @@ RUN npm i --production
RUN npm i -S zonemta-wildduck zonemta-limiter RUN npm i -S zonemta-wildduck zonemta-limiter
WORKDIR /haraka WORKDIR /haraka
RUN npm i RUN npm i
RUN npm i -S haraka-plugin-wildduck haraka-plugin-rspamd haraka-plugin-limit haraka-plugin-karma haraka-plugin-redis haraka-plugin-mongodb RUN npm i -S haraka-plugin-wildduck@v1.28.1 haraka-plugin-rspamd haraka-plugin-limit haraka-plugin-karma haraka-plugin-redis haraka-plugin-mongodb

Ver fichero

@@ -106,7 +106,7 @@
] ]
}, },
"NoDNSLink": false, "NoDNSLink": false,
"NoFetch": false, "NoFetch": true,
"PathPrefixes": [], "PathPrefixes": [],
"PublicGateways": { "PublicGateways": {
"ipfs.hatthieves.es": { "ipfs.hatthieves.es": {

Ver fichero

@@ -2,8 +2,8 @@ version: '2'
services: services:
ipfs: ipfs:
image: ipfs/go-ipfs # image: ipfs/go-ipfs
# build: ./ipfs build: ./go-ipfs
hostname: ipfs hostname: ipfs
container_name: ipfs container_name: ipfs
restart: always restart: always
@@ -11,7 +11,7 @@ services:
- /bin/sh - /bin/sh
- /entrypoint.sh - /entrypoint.sh
volumes: volumes:
- ./data:/data/ipfs - ./data-ipfs:/data/ipfs
# - ./temp:/temp # - ./temp:/temp
# - /opt/docker/production/nms/media:/media:ro # - /opt/docker/production/nms/media:/media:ro
- /opt/docker/production/nginx/nginx/hls:/hls:ro - /opt/docker/production/nginx/nginx/hls:/hls:ro
@@ -19,6 +19,7 @@ services:
# - /opt/docker/production/nms/media/live/streaming:/streaming:ro # - /opt/docker/production/nms/media/live/streaming:/streaming:ro
- ./entrypoint.sh:/entrypoint.sh:ro - ./entrypoint.sh:/entrypoint.sh:ro
# - ./ipfs/ipfs:/home/node/.ipfs # - ./ipfs/ipfs:/home/node/.ipfs
# - /opt/docker/production/webdav/webdav/public/ale/Elektor:/Elektor:ro
expose: expose:
- 5001 - 5001
- 8080 - 8080

Ver fichero

@@ -7,11 +7,12 @@ services:
hostname: mumble hostname: mumble
container_name: mumble container_name: mumble
restart: always restart: always
# entrypoint: entrypoint:
# - murmurd - murmurd
# - -fg - -fg
volumes: volumes:
- ./data/mumble-server.ini:/etc/murmur/murmur.ini:ro # - ./data/mumble-server.ini:/etc/murmur/murmur.ini:ro
- ./data/mumble-server.ini:/home/murmur/.murmurd/murmur.ini:ro
# - ./data/mumble-server.ini:/etc/mumble-server.ini:ro # - ./data/mumble-server.ini:/etc/mumble-server.ini:ro
- /opt/docker/secure/privkey.pem:/etc/mumble-ssl/privkey.pem:ro - /opt/docker/secure/privkey.pem:/etc/mumble-ssl/privkey.pem:ro
- /opt/docker/secure/fullchain.pem:/etc/mumble-ssl/fullchain.pem:ro - /opt/docker/secure/fullchain.pem:/etc/mumble-ssl/fullchain.pem:ro

Ver fichero

@@ -27,7 +27,7 @@ services:
ipv4_address: 172.119.0.101 ipv4_address: 172.119.0.101
mariadb-nextcloud: mariadb-nextcloud:
image: mariadb image: mariadb:10.5
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always restart: always
container_name: mariadb-nextcloud container_name: mariadb-nextcloud
@@ -49,4 +49,3 @@ networks:
ipam: ipam:
config: config:
- subnet: 172.119.0.0/24 - subnet: 172.119.0.0/24

Ver fichero

@@ -81,6 +81,8 @@ services:
doom: doom:
wtorrent: wtorrent:
g-plv: g-plv:
hatboy:
covid19map:
networks: networks:
mynet: mynet:
@@ -238,3 +240,11 @@ networks:
g-plv: g-plv:
external: external:
name: gplv_mynet name: gplv_mynet
hatboy:
external:
name: hatboy_mynet
covid19map:
external:
name: covid19map_mynet

Ver fichero

@@ -1,7 +1,6 @@
error_page 404 /404.html; error_page 404 /404.html;
error_page 500 /50x.html; error_page 500 /50x.html;
error_page 502 /50x.html; error_page 502 /50x.html;
error_page 503 /50x.html; error_page 503 /50x.html;
error_page 504 /50x.html; error_page 504 /50x.html;
# error_page 404 500 502 503 504 =301 https://www.hatthieves.es; # error_page 404 500 502 503 504 =301 https://www.hatthieves.es;

Ver fichero

@@ -21,7 +21,7 @@ server {
ssl_prefer_server_ciphers on; ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m; ssl_session_cache shared:SSL:10m;
# add_header Alt-Svc 'h3-25=":443"; ma=86400'; # add_header Alt-Svc 'h3-25=":443"; ma=86400';
add_header alt-svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header alt-svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
server { server {
@@ -40,7 +40,7 @@ server {
ssl_prefer_server_ciphers on; ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m; ssl_session_cache shared:SSL:10m;
# add_header Alt-Svc 'h3-25=":443"; ma=86400'; # add_header Alt-Svc 'h3-25=":443"; ma=86400';
add_header alt-svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header alt-svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
location / { location / {
return 301 https://www.hatthieves.es; return 301 https://www.hatthieves.es;
# rewrite ^/(.*)$ https://www.hatthieves.es/$1 permanent; # rewrite ^/(.*)$ https://www.hatthieves.es/$1 permanent;
@@ -61,7 +61,7 @@ server {
ssl_prefer_server_ciphers on; ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m; ssl_session_cache shared:SSL:10m;
# add_header Alt-Svc 'h3-25=":443"; ma=86400'; # add_header Alt-Svc 'h3-25=":443"; ma=86400';
add_header alt-svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header alt-svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
location / { location / {
return 301 https://www.hatthieves.es; return 301 https://www.hatthieves.es;
# rewrite ^/(.*)$ https://www.hatthieves.es/$1 permanent; # rewrite ^/(.*)$ https://www.hatthieves.es/$1 permanent;

Ver fichero

@@ -2,8 +2,8 @@
while [ True ]; do while [ True ]; do
for i in $(cat "$1"); do for i in $(cat "$1"); do
ffmpeg -loglevel quiet -re -i async:cache:"$i" \ ffmpeg -loglevel quiet -re -i async:cache:"$i" \
-threads 1 -async 1 -c:v libx264 -preset superfast -tune zerolatency -c:a aac -ar 44100 -f flv "$2" \ -threads 1 -async 1 -c:v libx264 -preset superfast -tune zerolatency -c:a aac -ar 44100 -f flv "$2"
-threads 1 -async 1 -c:v libx264 -preset superfast -tune zerolatency -c:a aac -ar 44100 -f flv "$3" # -threads 1 -async 1 -c:v libx264 -preset superfast -tune zerolatency -c:a aac -ar 44100 -f flv "$3"
done done
done done

Ver fichero

@@ -13,7 +13,7 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -13,7 +13,7 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -12,6 +12,6 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -15,7 +15,7 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
# proxy_buffering off; # proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -30,7 +30,7 @@ server {
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host; proxy_set_header Host $host;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -15,6 +15,6 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -15,7 +15,7 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -11,7 +11,7 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -13,6 +13,6 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -15,6 +15,6 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -10,7 +10,7 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off; proxy_buffering off;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -15,6 +15,6 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -31,7 +31,7 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
location /live { location /live {
alias /etc/nginx/live; alias /etc/nginx/live;
@@ -50,6 +50,6 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -3,7 +3,23 @@ server {
listen [::]:443 ssl http2; listen [::]:443 ssl http2;
server_name icecast.hatthieves.es music.hatthieves.es radio.hatthieves.es; server_name icecast.hatthieves.es music.hatthieves.es radio.hatthieves.es;
client_max_body_size 2G; client_max_body_size 2G;
location / { location /style.css {
proxy_pass http://172.129.0.101:8000/style.css;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
}
location /admin {
proxy_pass http://172.129.0.101:8000/admin;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
}
location ~* \.(?:mp3|ogg|m3u|m3u8|xspf)$ {
proxy_pass http://172.129.0.101:8000; proxy_pass http://172.129.0.101:8000;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host; proxy_set_header Host $host;
@@ -11,5 +27,12 @@ server {
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off; proxy_buffering off;
} }
location / {
proxy_pass http://172.129.0.102:3000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
}
} }

Ver fichero

@@ -13,6 +13,6 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -14,7 +14,7 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
# add_header 'Access-Control-Allow-Origin' $http_origin; # add_header 'Access-Control-Allow-Origin' $http_origin;
# add_header 'Access-Control-Allow-Methods' '*'; # add_header 'Access-Control-Allow-Methods' '*';
# add_header 'Access-Control-Allow-Credentials' 'true'; # add_header 'Access-Control-Allow-Credentials' 'true';
@@ -32,7 +32,7 @@ server {
# proxy_set_header Connection "Upgrade"; # proxy_set_header Connection "Upgrade";
# proxy_buffering off; # proxy_buffering off;
# proxy_http_version 1.1; # proxy_http_version 1.1;
# add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; ## add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
# } # }
location /ipfs { location /ipfs {
proxy_pass http://172.105.0.101:8080/ipfs; proxy_pass http://172.105.0.101:8080/ipfs;
@@ -48,7 +48,7 @@ server {
# add_header 'Access-Control-Allow-Methods' '*'; # add_header 'Access-Control-Allow-Methods' '*';
# add_header 'Access-Control-Allow-Credentials' 'true'; # add_header 'Access-Control-Allow-Credentials' 'true';
# add_header 'Vary' 'Origin'; # add_header 'Vary' 'Origin';
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
location /ipns { location /ipns {
proxy_pass http://172.105.0.101:8080/ipns; proxy_pass http://172.105.0.101:8080/ipns;
@@ -64,7 +64,7 @@ server {
# add_header 'Access-Control-Allow-Methods' '*'; # add_header 'Access-Control-Allow-Methods' '*';
# add_header 'Access-Control-Allow-Credentials' 'true'; # add_header 'Access-Control-Allow-Credentials' 'true';
# add_header 'Vary' 'Origin'; # add_header 'Vary' 'Origin';
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
# location /p2p { # location /p2p {
# proxy_pass http://172.105.0.101:4002; # proxy_pass http://172.105.0.101:4002;
@@ -76,7 +76,7 @@ server {
# proxy_set_header Connection "Upgrade"; # proxy_set_header Connection "Upgrade";
# proxy_buffering off; # proxy_buffering off;
# proxy_http_version 1.1; # proxy_http_version 1.1;
# add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; ## add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
# } # }
# location /ws { # location /ws {
# proxy_pass http://172.105.0.101:8081; # proxy_pass http://172.105.0.101:8081;
@@ -88,7 +88,7 @@ server {
# proxy_set_header Connection "Upgrade"; # proxy_set_header Connection "Upgrade";
# proxy_buffering off; # proxy_buffering off;
# proxy_http_version 1.1; # proxy_http_version 1.1;
# add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; ## add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
# } # }
# location /api { # location /api {
# proxy_pass http://172.105.0.101:5001/ipfs/api/v0; # proxy_pass http://172.105.0.101:5001/ipfs/api/v0;
@@ -100,7 +100,7 @@ server {
# proxy_set_header Connection "Upgrade"; # proxy_set_header Connection "Upgrade";
# proxy_buffering off; # proxy_buffering off;
# proxy_http_version 1.1; # proxy_http_version 1.1;
# add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; ## add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
# add_header Access-Control-Allow-Origin '*'; # add_header Access-Control-Allow-Origin '*';
# add_header Access-Control-Allow-Methods '*'; # add_header Access-Control-Allow-Methods '*';
# } # }

Ver fichero

@@ -11,7 +11,7 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -15,6 +15,6 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -15,7 +15,7 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -15,7 +15,7 @@ server {
# proxy_set_header Connection "Upgrade"; # proxy_set_header Connection "Upgrade";
# proxy_buffering off; # proxy_buffering off;
# proxy_http_version 1.1; # proxy_http_version 1.1;
# add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; ## add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
# } # }
# location /api/v1/streaming { # location /api/v1/streaming {
# proxy_set_header Host $host; # proxy_set_header Host $host;
@@ -29,7 +29,7 @@ server {
# proxy_http_version 1.1; # proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade; # proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "Upgrade"; # proxy_set_header Connection "Upgrade";
# add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; ## add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
# tcp_nodelay on; # tcp_nodelay on;
# } # }
} }

Ver fichero

@@ -15,6 +15,6 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -12,7 +12,7 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -14,6 +14,6 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -14,8 +14,12 @@ server {
proxy_http_version 1.1; proxy_http_version 1.1;
rewrite ^/\.well-known/carddav(.*)$ /remote.php/dav$1 redirect; rewrite ^/\.well-known/carddav(.*)$ /remote.php/dav$1 redirect;
rewrite ^/\.well-known/caldav(.*)$ /remote.php/dav$1 redirect; rewrite ^/\.well-known/caldav(.*)$ /remote.php/dav$1 redirect;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; ## add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Frame-Options "";
add_header X-Download-Options "";
add_header X-Content-Type-Options "";
add_header X-Permitted-Cross-Domain-Policies "";
} }
} }

Ver fichero

@@ -11,7 +11,7 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
add_header 'Access-Control-Allow-Origin' $http_origin; add_header 'Access-Control-Allow-Origin' $http_origin;
add_header 'Access-Control-Allow-Methods' '*'; add_header 'Access-Control-Allow-Methods' '*';
add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Credentials' 'true';
@@ -26,7 +26,7 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -13,7 +13,7 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -13,7 +13,7 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -14,7 +14,7 @@ server {
# proxy_set_header Connection "Upgrade"; # proxy_set_header Connection "Upgrade";
# proxy_buffering off; # proxy_buffering off;
# proxy_http_version 1.1; # proxy_http_version 1.1;
# add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; ## add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
# } # }
} }

Ver fichero

@@ -13,7 +13,7 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -12,7 +12,7 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_buffering off; proxy_buffering off;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -13,6 +13,6 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -15,7 +15,7 @@ server {
# proxy_set_header Upgrade $http_upgrade; # proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "Upgrade"; # proxy_set_header Connection "Upgrade";
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
http2_push_preload on; http2_push_preload on;
proxy_socket_keepalive on; proxy_socket_keepalive on;
proxy_connect_timeout 5m; proxy_connect_timeout 5m;

Ver fichero

@@ -13,7 +13,7 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -15,6 +15,6 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -11,7 +11,7 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -12,7 +12,7 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -12,7 +12,7 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
add_header 'Access-Control-Allow-Origin' $http_origin; add_header 'Access-Control-Allow-Origin' $http_origin;
add_header 'Access-Control-Allow-Methods' 'PUT, POST, GET, OPTIONS'; add_header 'Access-Control-Allow-Methods' 'PUT, POST, GET, OPTIONS';
add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Credentials' 'true';

Ver fichero

@@ -12,7 +12,7 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -14,6 +14,7 @@ server {
proxy_set_header Connection 'Upgrade'; proxy_set_header Connection 'Upgrade';
proxy_buffering off; proxy_buffering off;
proxy_http_version 1.1; proxy_http_version 1.1;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
add_header X-Frame-Options "";
} }
} }

Ver fichero

@@ -11,7 +11,7 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
location /ws { location /ws {
proxy_pass http://172.24.0.101:8888; proxy_pass http://172.24.0.101:8888;
@@ -22,7 +22,7 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
location /tracker { location /tracker {
proxy_pass http://172.24.0.101:8888; proxy_pass http://172.24.0.101:8888;
@@ -33,7 +33,7 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
proxy_buffering off; proxy_buffering off;
add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600'; # add_header Alt-Svc 'h3-25=":443"; ma=3600, h2=":443"; ma=3600';
} }
} }

Ver fichero

@@ -10,11 +10,12 @@ services:
# - /bin/sleep # - /bin/sleep
# - infinity # - infinity
volumes: volumes:
# - ./pleroma/config:/etc/pleroma
- ./pleroma/uploads:/var/lib/pleroma/uploads - ./pleroma/uploads:/var/lib/pleroma/uploads
- ./pleroma/config.exs:/etc/pleroma/config.exs:ro - ./pleroma/config/config.exs:/etc/pleroma/config.exs:ro
# - ./pleroma/vm.args.eex:/pleroma/rel/vm.args.eex - ./pleroma/config/prod.exs:/etc/pleroma/prod.exs:ro
- ./pleroma/terms-of-service.html:/var/lib/pleroma/static/static/terms-of-service.html:ro - ./pleroma/terms-of-service.html:/var/lib/pleroma/static/static/terms-of-service.html:ro
# - ./pleroma/config:/etc/pleroma
# - ./pleroma/vm.args.eex:/pleroma/rel/vm.args.eex
# - ./pleroma/emojis:/pleroma/priv/static/emoji/custom/images:ro # - ./pleroma/emojis:/pleroma/priv/static/emoji/custom/images:ro
# - ./pleroma/images:/pleroma/priv/static/static/images:ro # - ./pleroma/images:/pleroma/priv/static/static/images:ro
# - ./pleroma/custom_emoji.txt:/pleroma/config/custom_emoji.txt:ro # - ./pleroma/custom_emoji.txt:/pleroma/config/custom_emoji.txt:ro
@@ -33,7 +34,7 @@ services:
ipv4_address: 172.2.0.101 ipv4_address: 172.2.0.101
postgres: postgres:
image: postgres image: postgres:12
hostname: postgres-pleroma hostname: postgres-pleroma
container_name: postgres-pleroma container_name: postgres-pleroma
restart: always restart: always

Ver fichero

@@ -41,7 +41,7 @@
# #
# This configuration file is loaded before any dependency and # This configuration file is loaded before any dependency and
# is restricted to this project. # is restricted to this project.
use Mix.Config import Config
# General application configuration # General application configuration
config :pleroma, ecto_repos: [Pleroma.Repo] config :pleroma, ecto_repos: [Pleroma.Repo]
@@ -97,6 +97,7 @@ config :pleroma, :uri_schemes,
"dat", "dat",
"dweb", "dweb",
"gopher", "gopher",
"hyper",
"ipfs", "ipfs",
"ipns", "ipns",
"irc", "irc",
@@ -186,7 +187,9 @@ config :pleroma, :instance,
notify_email: "noreply@example.com", notify_email: "noreply@example.com",
description: "Pleroma: An efficient and flexible fediverse server", description: "Pleroma: An efficient and flexible fediverse server",
background_image: "/images/city.jpg", background_image: "/images/city.jpg",
instance_thumbnail: "/instance/thumbnail.jpeg",
limit: 5_000, limit: 5_000,
description_limit: 5_000,
chat_limit: 5_000, chat_limit: 5_000,
remote_limit: 100_000, remote_limit: 100_000,
upload_limit: 16_000_000, upload_limit: 16_000_000,
@@ -202,6 +205,7 @@ config :pleroma, :instance,
registrations_open: true, registrations_open: true,
invites_enabled: false, invites_enabled: false,
account_activation_required: false, account_activation_required: false,
account_approval_required: false,
federating: true, federating: true,
federation_incoming_replies_max_depth: 100, federation_incoming_replies_max_depth: 100,
federation_reachability_timeout_days: 7, federation_reachability_timeout_days: 7,
@@ -209,7 +213,6 @@ config :pleroma, :instance,
Pleroma.Web.ActivityPub.Publisher Pleroma.Web.ActivityPub.Publisher
], ],
allow_relay: true, allow_relay: true,
rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
public: true, public: true,
quarantined_instances: [], quarantined_instances: [],
managed_config: true, managed_config: true,
@@ -220,13 +223,9 @@ config :pleroma, :instance,
"text/markdown", "text/markdown",
"text/bbcode" "text/bbcode"
], ],
mrf_transparency: true,
mrf_transparency_exclusions: [],
autofollowed_nicknames: [], autofollowed_nicknames: [],
max_pinned_statuses: 1, max_pinned_statuses: 1,
attachment_links: false, attachment_links: false,
welcome_user_nickname: nil,
welcome_message: nil,
max_report_comment_size: 1000, max_report_comment_size: 1000,
safe_dm_mentions: false, safe_dm_mentions: false,
healthcheck: false, healthcheck: false,
@@ -239,6 +238,7 @@ config :pleroma, :instance,
max_remote_account_fields: 20, max_remote_account_fields: 20,
account_field_name_length: 512, account_field_name_length: 512,
account_field_value_length: 2048, account_field_value_length: 2048,
registration_reason_length: 500,
external_user_synchronization: true, external_user_synchronization: true,
extended_nickname_format: true, extended_nickname_format: true,
cleanup_attachments: false, cleanup_attachments: false,
@@ -252,6 +252,26 @@ config :pleroma, :instance,
number: 5, number: 5,
length: 16 length: 16
] ]
],
show_reactions: true
config :pleroma, :welcome,
direct_message: [
enabled: false,
sender_nickname: nil,
message: nil
],
chat_message: [
enabled: false,
sender_nickname: nil,
message: nil
],
email: [
enabled: false,
sender: nil,
subject: "Welcome to <%= instance_name %>",
html: "Welcome to <%= instance_name %>",
text: "Welcome to <%= instance_name %>"
] ]
config :pleroma, :feed, config :pleroma, :feed,
@@ -359,6 +379,7 @@ config :pleroma, :mrf_simple,
federated_timeline_removal: [], federated_timeline_removal: [],
report_removal: [], report_removal: [],
reject: [], reject: [],
followers_only: [],
accept: [], accept: [],
avatar_removal: [], avatar_removal: [],
banner_removal: [], banner_removal: [],
@@ -371,12 +392,16 @@ config :pleroma, :mrf_keyword,
config :pleroma, :mrf_subchain, match_actor: %{} config :pleroma, :mrf_subchain, match_actor: %{}
config :pleroma, :mrf_activity_expiration, days: 365
config :pleroma, :mrf_vocabulary, config :pleroma, :mrf_vocabulary,
accept: [], accept: [],
reject: [] reject: []
# threshold of 7 days
config :pleroma, :mrf_object_age, config :pleroma, :mrf_object_age,
threshold: 172_800, threshold: 172_800,
threshold: 604_800,
actions: [:delist, :strip_followers] actions: [:delist, :strip_followers]
config :pleroma, :rich_media, config :pleroma, :rich_media,
@@ -406,6 +431,13 @@ config :pleroma, :media_proxy,
], ],
whitelist: [] whitelist: []
config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Http,
method: :purge,
headers: [],
options: []
config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Script, script_path: nil
config :pleroma, :chat, enabled: true config :pleroma, :chat, enabled: true
config :phoenix, :format_encoders, json: Jason config :phoenix, :format_encoders, json: Jason
@@ -428,6 +460,11 @@ config :pleroma, Pleroma.Web.Metadata,
], ],
unfurl_nsfw: false unfurl_nsfw: false
config :pleroma, Pleroma.Web.Preload,
providers: [
Pleroma.Web.Preload.Providers.Instance
]
config :pleroma, :http_security, config :pleroma, :http_security,
enabled: true, enabled: true,
sts: false, sts: false,
@@ -480,13 +517,13 @@ config :pleroma, Pleroma.User,
"user-search", "user-search",
"user_exists", "user_exists",
"users", "users",
"web" "web",
"hatthieves"
] ]
config :pleroma, Oban, config :pleroma, Oban,
repo: Pleroma.Repo, repo: Pleroma.Repo,
verbose: false, log: false,
prune: {:maxlen, 1500},
queues: [ queues: [
activity_expiration: 10, activity_expiration: 10,
federator_incoming: 50, federator_incoming: 50,
@@ -500,6 +537,7 @@ config :pleroma, Oban,
attachments_cleanup: 5, attachments_cleanup: 5,
new_users_digest: 1 new_users_digest: 1
], ],
plugins: [Oban.Plugins.Pruner],
crontab: [ crontab: [
{"0 0 * * *", Pleroma.Workers.Cron.ClearOauthTokenWorker}, {"0 0 * * *", Pleroma.Workers.Cron.ClearOauthTokenWorker},
{"0 * * * *", Pleroma.Workers.Cron.StatsWorker}, {"0 * * * *", Pleroma.Workers.Cron.StatsWorker},
@@ -525,6 +563,15 @@ config :auto_linker,
rel: "ugc" rel: "ugc"
] ]
config :pleroma, Pleroma.Formatter,
class: false,
rel: "ugc",
new_window: false,
truncate: false,
strip_prefix: false,
extra: true,
validate_tld: :no_scheme
config :pleroma, :ldap, config :pleroma, :ldap,
enabled: System.get_env("LDAP_ENABLED") == "true", enabled: System.get_env("LDAP_ENABLED") == "true",
host: System.get_env("LDAP_HOST") || "localhost", host: System.get_env("LDAP_HOST") || "localhost",
@@ -598,7 +645,7 @@ config :pleroma, :oauth2,
config :pleroma, :database, rum_enabled: false config :pleroma, :database, rum_enabled: false
config :pleroma, :env, Mix.env() #config :pleroma, :env, Mix.env()
config :http_signatures, config :http_signatures,
adapter: Pleroma.Signature adapter: Pleroma.Signature
@@ -622,6 +669,16 @@ config :pleroma, Pleroma.Plugs.RemoteIp, enabled: true
config :pleroma, :static_fe, enabled: false config :pleroma, :static_fe, enabled: false
# Example of frontend configuration
# This example will make us serve the primary frontend from the
# frontends directory within your `:pleroma, :instance, static_dir`.
# e.g., instance/static/frontends/pleroma/develop/
#
# With no frontend configuration, the bundled files from the `static` directory will
# be used.
#
# config :pleroma, :frontends, primary: %{"name" => "pleroma", "ref" => "develop"}
config :pleroma, :web_cache_ttl, config :pleroma, :web_cache_ttl,
activity_pub: nil, activity_pub: nil,
activity_pub_question: 30_000 activity_pub_question: 30_000
@@ -636,31 +693,40 @@ config :pleroma, Pleroma.Repo,
config :pleroma, :connections_pool, config :pleroma, :connections_pool,
checkin_timeout: 250, checkin_timeout: 250,
reclaim_multiplier: 0.1,
connection_acquisition_wait: 250,
connection_acquisition_retries: 5,
max_connections: 250, max_connections: 250,
retry: 1, retry: 1,
retry_timeout: 1000, retry_timeout: 1000,
max_idle_time: 30_000,
retry: 0,
await_up_timeout: 5_000 await_up_timeout: 5_000
config :pleroma, :pools, config :pleroma, :pools,
federation: [ federation: [
size: 50, size: 50,
max_overflow: 10, max_overflow: 10,
timeout: 150_000 timeout: 150_000,
max_waiting: 10
], ],
media: [ media: [
size: 50, size: 50,
max_overflow: 10, max_overflow: 10,
timeout: 150_000 timeout: 150_000,
max_waiting: 10
], ],
upload: [ upload: [
size: 25, size: 25,
max_overflow: 5, max_overflow: 5,
timeout: 300_000 timeout: 300_000,
max_waiting: 5
], ],
default: [ default: [
size: 10, size: 10,
max_overflow: 2, max_overflow: 2,
timeout: 10_000 timeout: 10_000,
max_waiting: 2
] ]
config :pleroma, :hackney_pools, config :pleroma, :hackney_pools,
@@ -684,7 +750,17 @@ config :pleroma, :restrict_unauthenticated,
config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: false config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: false
config :pleroma, :mrf,
policies: Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy,
transparency: true,
transparency_exclusions: []
config :tzdata, :http_client, Pleroma.HTTP.Tzdata
config :ex_aws, http_client: Pleroma.HTTP.ExAws
config :pleroma, :instances_favicons, enabled: false
# Import environment specific config. This must remain at the bottom # Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above. # of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs" import_config "prod.exs"

Ver fichero

@@ -3,43 +3,106 @@
# NOTE: This file should not be committed to a repo or otherwise made public # NOTE: This file should not be committed to a repo or otherwise made public
# without removing sensitive information. # without removing sensitive information.
use Mix.Config import Config
# Configures the endpoint # Configures the endpoint
websocket_config = [
path: "/socket",
serializer: [
{Phoenix.Socket.V1.JSONSerializer, "~> 1.0.0"},
{Phoenix.Socket.V2.JSONSerializer, "~> 2.0.0"}
],
timeout: 60_000,
transport_log: false,
compress: false
]
config :pleroma, Pleroma.Web.Endpoint, config :pleroma, Pleroma.Web.Endpoint,
url: [host: "social.hatthieves.es", scheme: "https", port: 443], url: [host: "pleroma.hatthieves.es", scheme: "https", port: 443],
secret_key_base: "cXHImR89EePUjWdclU3vJUr8ZiGQiKLalhU9AMsEY5YnSG2e6MLzjmVwmxCztqa8", secret_key_base: "cXHImR89EePUjWdclU3vJUr8ZiGQiKLalhU9AMsEY5YnSG2e6MLzjmVwmxCztqa8",
signing_salt: "g0uP6uv4", signing_salt: "g0uP6uv4",
instrumenters: [Pleroma.Web.Endpoint.Instrumenter], http: [ip: {0, 0, 0, 0}, port: 4000]
http: [
dispatch: [ config :pleroma, :instance,
{:_, name: "HatThieves's Pleroma",
[ email: "info@hatthieves.es",
{"/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []}, notify_email: "info@hatthieves.es",
{"/socket", Phoenix.Endpoint.CowboyWebSocket, limit: 8192,
{Phoenix.Transports.WebSocket, registrations_open: true,
{Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}}, dedupe_media: true,
{:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}} upload_limit: 25_000_000,
]} federating: true,
], allow_relay: true,
port: 4000, public: true,
ip: {0, 0, 0, 0} quarantined_instances: [],
# ip: {172, 2, 0, 101} dynamic_configuration: true
config :logger, :console,
level: :info,
format: "\n$time $metadata[$level] $message\n",
metadata: [:request_id]
#config :mime, :types, %{
# "application/xml" => ["xml"],
# "application/xrd+xml" => ["xrd+xml"],
# "application/activity+json" => ["activity+json"],
# "application/ld+json" => ["activity+json"]
#}
#config :pleroma, :websub, Pleroma.Web.Websub
#config :pleroma, :ostatus, Pleroma.Web.OStatus
#config :pleroma, :httpoison, Pleroma.HTTP
#version =
# with {version, 0} <- System.cmd("git", ["rev-parse", "HEAD"]) do
# "Pleroma #{Mix.Project.config()[:version]} #{String.trim(version)}"
# else
# _ -> "Pleroma #{Mix.Project.config()[:version]} dev"
# end
# Configures http settings, upstream proxy etc.
config :pleroma, :http, proxy_url: nil
config :pleroma, configurable_from_database: true
config :pleroma, :activitypub,
accept_blocks: true,
unfollow_blocked: true,
outgoing_blocks: true
config :pleroma, :hackney_pools,
federation: [
max_connections: 200,
timeout: 300_000
], ],
render_errors: [view: Pleroma.Web.ErrorView, accepts: ~w(json)], media: [
pubsub: [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2], max_connections: 100,
secure_cookie_flag: true timeout: 300_000
],
upload: [
max_connections: 100,
timeout: 500_000
]
config :pleroma, :streamer,
workers: 15,
overflow_workers: 10
#config :pleroma, Pleroma.Uploaders.S3, s3_bucket: nil
#config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"]
#config :pleroma, :uri_schemes, additionnal_schemes: []
#config :pleroma, :user, deny_follow_blocked: true
config :pleroma, :mrf_rejectnonpublic,
allow_followersonly: false,
allow_direct: false
config :pleroma, :mrf_simple,
media_removal: ["humblr.social","librem.one","quey.org","social.politicaconciencia.net","switter.at","7td.org","animalliberation.social","anime.website","barrag.net","bikeshed.party","blob.cat","busshi.moe","carnal-gabhub.ptotohype.net","carrot.army","cliterati.club","develop.gab.com","dickkickextremist.xyz","dogeposting.social","ekrem.develop.gab","expired.mentality.rip","fedi.absturztau.be","floppy.tokyo","freespeechextremist.com","freezepeach.xyz","gab.ai","gabble.xyz","gab.com","gabfed.com","gab.io","gab.polaris-1.work","gab.sleeck.eu","gleasonator.com","glindr.org","gnusocial.no","gs.smuglo.li","hagra.net","hitchhicker.social","hitchhiker.social","husk.site","inditoot.com","justicewarrior.social","kiwifarms.cc","ligma.pro","mastodon.starrevolution.org","neenster.org","not-develop.gab.com","npf.mlpol.net","pawoo.net","peertube.uno","pl.skyn3t.in","pl.smuglo.li","prout.social","qoto.org","search.fedi.app","shitposter.club","social.byoblu.com","social.sunshinegardens.org","socnet.supes.com","spinster.xyz","tube.gnous.eu","us.tv","uwu.social","video.nobodyhasthe.biz","witches.live","yggdrasil.social"],
media_nsfw: [],
federated_timeline_removal: ["humblr.social","librem.one","quey.org","social.politicaconciencia.net","switter.at","7td.org","animalliberation.social","anime.website","barrag.net","bikeshed.party","blob.cat","busshi.moe","carnal-gabhub.ptotohype.net","carrot.army","cliterati.club","develop.gab.com","dickkickextremist.xyz","dogeposting.social","ekrem.develop.gab","expired.mentality.rip","fedi.absturztau.be","floppy.tokyo","freespeechextremist.com","freezepeach.xyz","gab.ai","gabble.xyz","gab.com","gabfed.com","gab.io","gab.polaris-1.work","gab.sleeck.eu","gleasonator.com","glindr.org","gnusocial.no","gs.smuglo.li","hagra.net","hitchhicker.social","hitchhiker.social","husk.site","inditoot.com","justicewarrior.social","kiwifarms.cc","ligma.pro","mastodon.starrevolution.org","neenster.org","not-develop.gab.com","npf.mlpol.net","pawoo.net","peertube.uno","pl.skyn3t.in","pl.smuglo.li","prout.social","qoto.org","search.fedi.app","shitposter.club","social.byoblu.com","social.sunshinegardens.org","socnet.supes.com","spinster.xyz","tube.gnous.eu","us.tv","uwu.social","video.nobodyhasthe.biz","witches.live","yggdrasil.social"],
report_removal: ["humblr.social","librem.one","quey.org","social.politicaconciencia.net","switter.at","7td.org","animalliberation.social","anime.website","barrag.net","bikeshed.party","blob.cat","busshi.moe","carnal-gabhub.ptotohype.net","carrot.army","cliterati.club","develop.gab.com","dickkickextremist.xyz","dogeposting.social","ekrem.develop.gab","expired.mentality.rip","fedi.absturztau.be","floppy.tokyo","freespeechextremist.com","freezepeach.xyz","gab.ai","gabble.xyz","gab.com","gabfed.com","gab.io","gab.polaris-1.work","gab.sleeck.eu","gleasonator.com","glindr.org","gnusocial.no","gs.smuglo.li","hagra.net","hitchhicker.social","hitchhiker.social","husk.site","inditoot.com","justicewarrior.social","kiwifarms.cc","ligma.pro","mastodon.starrevolution.org","neenster.org","not-develop.gab.com","npf.mlpol.net","pawoo.net","peertube.uno","pl.skyn3t.in","pl.smuglo.li","prout.social","qoto.org","search.fedi.app","shitposter.club","social.byoblu.com","social.sunshinegardens.org","socnet.supes.com","spinster.xyz","tube.gnous.eu","us.tv","uwu.social","video.nobodyhasthe.biz","witches.live","yggdrasil.social"],
reject: ["humblr.social","librem.one","quey.org","social.politicaconciencia.net","switter.at","7td.org","animalliberation.social","anime.website","barrag.net","bikeshed.party","blob.cat","busshi.moe","carnal-gabhub.ptotohype.net","carrot.army","cliterati.club","develop.gab.com","dickkickextremist.xyz","dogeposting.social","ekrem.develop.gab","expired.mentality.rip","fedi.absturztau.be","floppy.tokyo","freespeechextremist.com","freezepeach.xyz","gab.ai","gabble.xyz","gab.com","gabfed.com","gab.io","gab.polaris-1.work","gab.sleeck.eu","gleasonator.com","glindr.org","gnusocial.no","gs.smuglo.li","hagra.net","hitchhicker.social","hitchhiker.social","husk.site","inditoot.com","justicewarrior.social","kiwifarms.cc","ligma.pro","mastodon.starrevolution.org","neenster.org","not-develop.gab.com","npf.mlpol.net","pawoo.net","peertube.uno","pl.skyn3t.in","pl.smuglo.li","prout.social","qoto.org","search.fedi.app","shitposter.club","social.byoblu.com","social.sunshinegardens.org","socnet.supes.com","spinster.xyz","tube.gnous.eu","us.tv","uwu.social","video.nobodyhasthe.biz","witches.live","yggdrasil.social"],
accept: [],
avatar_removal: ["humblr.social","librem.one","quey.org","social.politicaconciencia.net","switter.at","7td.org","animalliberation.social","anime.website","barrag.net","bikeshed.party","blob.cat","busshi.moe","carnal-gabhub.ptotohype.net","carrot.army","cliterati.club","develop.gab.com","dickkickextremist.xyz","dogeposting.social","ekrem.develop.gab","expired.mentality.rip","fedi.absturztau.be","floppy.tokyo","freespeechextremist.com","freezepeach.xyz","gab.ai","gabble.xyz","gab.com","gabfed.com","gab.io","gab.polaris-1.work","gab.sleeck.eu","gleasonator.com","glindr.org","gnusocial.no","gs.smuglo.li","hagra.net","hitchhicker.social","hitchhiker.social","husk.site","inditoot.com","justicewarrior.social","kiwifarms.cc","ligma.pro","mastodon.starrevolution.org","neenster.org","not-develop.gab.com","npf.mlpol.net","pawoo.net","peertube.uno","pl.skyn3t.in","pl.smuglo.li","prout.social","qoto.org","search.fedi.app","shitposter.club","social.byoblu.com","social.sunshinegardens.org","socnet.supes.com","spinster.xyz","tube.gnous.eu","us.tv","uwu.social","video.nobodyhasthe.biz","witches.live","yggdrasil.social"],
banner_removal: ["humblr.social","librem.one","quey.org","social.politicaconciencia.net","switter.at","7td.org","animalliberation.social","anime.website","barrag.net","bikeshed.party","blob.cat","busshi.moe","carnal-gabhub.ptotohype.net","carrot.army","cliterati.club","develop.gab.com","dickkickextremist.xyz","dogeposting.social","ekrem.develop.gab","expired.mentality.rip","fedi.absturztau.be","floppy.tokyo","freespeechextremist.com","freezepeach.xyz","gab.ai","gabble.xyz","gab.com","gabfed.com","gab.io","gab.polaris-1.work","gab.sleeck.eu","gleasonator.com","glindr.org","gnusocial.no","gs.smuglo.li","hagra.net","hitchhicker.social","hitchhiker.social","husk.site","inditoot.com","justicewarrior.social","kiwifarms.cc","ligma.pro","mastodon.starrevolution.org","neenster.org","not-develop.gab.com","npf.mlpol.net","pawoo.net","peertube.uno","pl.skyn3t.in","pl.smuglo.li","prout.social","qoto.org","search.fedi.app","shitposter.club","social.byoblu.com","social.sunshinegardens.org","socnet.supes.com","spinster.xyz","tube.gnous.eu","us.tv","uwu.social","video.nobodyhasthe.biz","witches.live","yggdrasil.social"]
config :pleroma, :media_proxy,
enabled: false,
redirect_on_failure: true
#base_url: "https://cache.pleroma.social"
config :pleroma, Pleroma.Repo, config :pleroma, Pleroma.Repo,
adapter: Ecto.Adapters.Postgres, adapter: Ecto.Adapters.Postgres,
@@ -47,81 +110,8 @@ config :pleroma, Pleroma.Repo,
password: "pl3r0m4.", password: "pl3r0m4.",
database: "pleroma", database: "pleroma",
hostname: "172.2.0.102", hostname: "172.2.0.102",
pool_size: 150 pool_size: 200
# timeout: 50000
config :pleroma, :instance,
name: "HatThieves/Pleroma",
email: "info@hatthieves.es",
notify_email: "info@hatthieves.es",
limit: 5000,
registrations_open: true,
dedupe_media: true,
upload_limit: 25_000_000,
federating: true,
allow_relay: true,
rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
public: true,
quarantined_instances: [],
dynamic_configuration: true,
managed_config: true
config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:request_id]
config :pleroma, :frontend_configurations,
pleroma_fe: %{
theme: "monokai",
background: "/static/aurora_borealis.jpg",
logo: "/static/logo.png",
logoMask: true,
logoMargin: ".1em",
redirectRootNoLogin: "/main/all",
redirectRootLogin: "/main/friends",
chatDisabled: false,
showInstanceSpecificPanel: true,
collapseMessageWithSubject: false,
scopeCopy: true,
subjectLineBehavior: "email",
postContentType: "text/plain",
alwaysShowSubjectInput: true,
hidePostStats: false,
hideUserStats: false,
loginMethod: "password",
webPushNotifications: true,
noAttachmentLinks: false,
nsfwCensorImage: "",
showFeaturesPanel: true,
minimalScopesMode: false
},
masto_fe: %{
showInstanceSpecificPanel: true
}
config :pleroma, :hackney_pools,
federation: [
max_connections: 130,
timeout: 150_000
],
media: [
max_connections: 50,
timeout: 150_000
],
upload: [
max_connections: 50,
timeout: 300_000
]
config :logger, :console,
level: :error,
format: "$metadata[$level] $message",
metadata: [:request_id]
config :logger, :ex_syslogger,
level: :error,
ident: "pleroma",
format: "$metadata[$level] $message",
metadata: [:request_id]
# Configure web push notifications # Configure web push notifications
config :web_push_encryption, :vapid_details, config :web_push_encryption, :vapid_details,
@@ -129,31 +119,66 @@ config :web_push_encryption, :vapid_details,
public_key: "BF7FikUMwkHL_bbWDaoJwzRep41IqeBz4JzMEMbHTJYGBAgDx-qRHUh-A1BAxlmCBDNdpexFEfONt8xEzvhEQAw", public_key: "BF7FikUMwkHL_bbWDaoJwzRep41IqeBz4JzMEMbHTJYGBAgDx-qRHUh-A1BAxlmCBDNdpexFEfONt8xEzvhEQAw",
private_key: "t0FMHZsmzkZ1cXjI86ttRDlm_vzLiWQcMc8fhljqooY" private_key: "t0FMHZsmzkZ1cXjI86ttRDlm_vzLiWQcMc8fhljqooY"
config :pleroma, Pleroma.Upload, # Enable Strict-Transport-Security once SSL is working:
uploader: Pleroma.Uploaders.Local, # config :pleroma, :http_security,
filters: [Pleroma.Upload.Filter.Dedupe], # sts: true
link_name: true,
proxy_remote: false,
proxy_opts: [
redirect_on_failure: false,
max_body_length: 25 * 1_048_576,
http: [
follow_redirect: true,
pool: :upload
]
]
config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads" # Configure S3 support if desired.
# The public S3 endpoint is different depending on region and provider,
# consult your S3 provider's documentation for details on what to use.
#
# config :pleroma, Pleroma.Uploaders.S3,
# bucket: "some-bucket",
# public_endpoint: "https://s3.amazonaws.com"
#
# Configure S3 credentials:
# config :ex_aws, :s3,
# access_key_id: "xxxxxxxxxxxxx",
# secret_access_key: "yyyyyyyyyyyy",
# region: "us-east-1",
# scheme: "https://"
#
# For using third-party S3 clones like wasabi, also do:
# config :ex_aws, :s3,
# host: "s3.wasabisys.com"
config :pleroma, :chat, enabled: false
# Configure Openstack Swift support if desired.
#
# Many openstack deployments are different, so config is left very open with
# no assumptions made on which provider you're using. This should allow very
# wide support without needing separate handlers for OVH, Rackspace, etc.
#
# config :pleroma, Pleroma.Uploaders.Swift,
# container: "some-container",
# username: "api-username-yyyy",
# password: "api-key-xxxx",
# tenant_id: "<openstack-project/tenant-id>",
# auth_url: "https://keystone-endpoint.provider.com",
# storage_url: "https://swift-endpoint.prodider.com/v1/AUTH_<tenant>/<container>",
# object_url: "https://cdn-endpoint.provider.com/<container>"
#
#config :pleroma, Pleroma.Upload,
# uploader: Pleroma.Uploaders.Local,
# filters: [Pleroma.Upload.Filter.Dedupe],
# link_name: true,
# proxy_remote: true,
# proxy_opts: [
# redirect_on_failure: false,
# max_body_length: 25 * 1_048_576,
# http: [
# follow_redirect: true,
# pool: :upload
# ]
# ]
#config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
config :pleroma, :chat, enabled: true
config :phoenix, :format_encoders, json: Jason config :phoenix, :format_encoders, json: Jason
config :pleroma, :gopher,
enabled: true,
ip: {172,2,0,101},
port: 9999
config :pleroma, :suggestions, config :pleroma, :suggestions,
enabled: true, enabled: true,
third_party_engine: third_party_engine:
@@ -161,8 +186,11 @@ config :pleroma, :suggestions,
timeout: 300_000, timeout: 300_000,
web: "https://vinayaka.distsn.org/?{{host}}+{{user}}" web: "https://vinayaka.distsn.org/?{{host}}+{{user}}"
#config :pleroma_job_queue, :queues, config :pleroma, :instance, static_dir: "/var/lib/pleroma/static"
# federator_incoming: 100, config :pleroma, Pleroma.Uploaders.Local, uploads: "/var/lib/pleroma/uploads"
# federator_outgoing: 100
config :pleroma, :mrf,
policies: Pleroma.Web.ActivityPub.MRF.SimplePolicy,
transparency: true,
transparency_exclusions: []
import_config "#{Mix.env()}.secret.exs"

Ver fichero

@@ -179,7 +179,7 @@ config :pleroma, :chat, enabled: true
config :phoenix, :format_encoders, json: Jason config :phoenix, :format_encoders, json: Jason
config :pleroma, :gopher, config :pleroma, :gopher,
enabled: true, enabled: false,
ip: {172, 2, 0, 101}, ip: {172, 2, 0, 101},
port: 9999 port: 9999

Ver fichero

@@ -2,8 +2,8 @@ version: '2'
services: services:
prosody: prosody:
build: ./prosody # build: ./prosody
# image: 'prosody/prosody' image: 'prosody/prosody'
hostname: prosody hostname: prosody
container_name: prosody container_name: prosody
restart: always restart: always

Ver fichero

@@ -1,7 +1,7 @@
version: '2' version: '2'
services: services:
db-rocketchat1: db-rocketchat1:
image: mongo image: mongo:4.2
restart: always restart: always
container_name: db-rocketchat1 container_name: db-rocketchat1
hostname: db-rocketchat1 hostname: db-rocketchat1
@@ -14,11 +14,14 @@ services:
ipv4_address: 172.133.0.99 ipv4_address: 172.133.0.99
db-rocketchat2: db-rocketchat2:
image: mongo image: mongo:4.2
restart: always restart: always
container_name: db-rocketchat2 container_name: db-rocketchat2
hostname: db-rocketchat2 hostname: db-rocketchat2
command: --keyFile /opt/keyfile --replSet "rs0" # command: --keyFile /opt/keyfile --replSet "rs0" --repair
entrypoint:
- /bin/sleep
- infinity
volumes: volumes:
- ./mongo/data2:/data/db - ./mongo/data2:/data/db
- ./mongo/mongodb-keyfile:/opt/keyfile - ./mongo/mongodb-keyfile:/opt/keyfile

Ver fichero

@@ -19,6 +19,7 @@ services:
- ./wordpress/header.php:/usr/src/wordpress/wp-content/themes/twentyseventeen/header.php - ./wordpress/header.php:/usr/src/wordpress/wp-content/themes/twentyseventeen/header.php
- ./wordpress/footer.php:/usr/src/wordpress/wp-content/themes/twentyseventeen/footer.php - ./wordpress/footer.php:/usr/src/wordpress/wp-content/themes/twentyseventeen/footer.php
- ./wordpress/google258093a68d45ac64.html:/var/www/html/google258093a68d45ac64.html - ./wordpress/google258093a68d45ac64.html:/var/www/html/google258093a68d45ac64.html
- ./wordpress/ads.txt:/var/www/html/ads.txt
- ./wordpress/htaccess:/var/www/html/.htaccess - ./wordpress/htaccess:/var/www/html/.htaccess
- ./wordpress/wp-content:/var/www/html/wp-content - ./wordpress/wp-content:/var/www/html/wp-content
- ./wordpress/apache2.conf:/etc/apache2/apache2.conf:ro - ./wordpress/apache2.conf:/etc/apache2/apache2.conf:ro

Ver fichero

@@ -1,3 +1,4 @@
#/bin/bash #/bin/bash
docker system prune -f -a docker system prune -f -a
docker system prune -f --volumes
truncate -s 0 /var/lib/docker/containers/*/*-json.log truncate -s 0 /var/lib/docker/containers/*/*-json.log

Ver fichero

@@ -1,12 +1,13 @@
#!/bin/bash #!/bin/bash
RUTA=/opt/docker/production
# dehydrated -c -t dns-01 -o /root/letsencrypt -d "hatthieves.es *.hatthieves.es" -k /etc/dehydrated/manual.rb # dehydrated -c -t dns-01 -o /root/letsencrypt -d "hatthieves.es *.hatthieves.es" -k /etc/dehydrated/manual.rb
cat /root/letsencrypt/hatthieves.es/fullchain.pem > /opt/docker/secure/fullchain.pem cat /root/letsencrypt/hatthieves.es/fullchain.pem > /opt/docker/secure/fullchain.pem
cat /root/letsencrypt/hatthieves.es/privkey.pem > /opt/docker/secure/privkey.pem cat /root/letsencrypt/hatthieves.es/privkey.pem > /opt/docker/secure/privkey.pem
cd /opt/docker/nginx; docker-compose down; docker-compose up -d cd $RUTA/nginx; docker-compose down; docker-compose up -d
cd /opt/docker/haraka-wildduck; docker-compose down; docker-compose up -d cd $RUTA/haraka-wildduck; docker-compose down; docker-compose up -d
cd /opt/docker/prosody; docker-compose down; docker-compose up -d cd $RUTA/prosody; docker-compose down; docker-compose up -d
cd /opt/docker/coturn; docker-compose down; docker-compose up -d cd $RUTA/coturn; docker-compose down; docker-compose up -d
cd /opt/docker/mumble; docker-compose down; docker-compose up -d cd $RUTA/mumble; docker-compose down; docker-compose up -d
cd /opt/docker/rocket; docker-compose down; docker-compose up -d #cd $RUTA/rocket; docker-compose down; docker-compose up -d
echo -e "\nCERTS UPDATED!! :-)" echo -e "\nCERTS UPDATED!! :-)"
exit 0 exit 0