[ ntfy ] 新增ntfy-消息通知服务器的内容

This commit is contained in:
zeaslity
2024-01-19 11:35:13 +08:00
parent 935294ff4d
commit 02022603ed
10 changed files with 615 additions and 1 deletions

View File

@@ -0,0 +1,44 @@
version: '2.1'
services:
mariadb:
image: 'mariadb:10.5.8-focal'
healthcheck:
test: ["CMD", "mysqladmin", "ping", "--silent","--password=$$MYSQL_ROOT_PASSWORD"]
timeout: 10s
retries: 3
volumes:
- 'mariadb_data:/var/lib/mysql'
environment:
- MYSQL_ROOT_PASSWORD=theVeryp@ssw0rd
- MYSQL_DATABASE=pushdeer
redis:
image: 'bitnami/redis:6.0.16'
healthcheck:
test: ["CMD", "redis-cli","ping"]
environment:
- ALLOW_EMPTY_PASSWORD=yes
app:
image: 'pushdeer-app'
ports:
- '8800:80'
volumes:
- './:/app'
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
environment:
- DB_HOST=mariadb
- DB_PORT=3306
- DB_USERNAME=root
- DB_DATABASE=pushdeer
- DB_PASSWORD=theVeryp@ssw0rd
- GO_PUSH_IOS_TOPIC=com.pushdeer.self.ios
- GO_PUSH_IOS_CLIP_TOPIC=com.pushdeer.self.ios.Clip
- APP_DEBUG=false
- MQTT_API_KEY=9LKo3
- MQTT_ON=false
volumes:
mariadb_data:

View File

@@ -0,0 +1,40 @@
server {
server_name push.107421.xyz;
listen 80 ;
return 301 https://push.107421.xyz$request_uri;
}
server {
listen 443 ssl;
server_name push.107421.xyz;
ssl_certificate /etc/nginx/conf.d/ssl_key/push.107421.xyz.cert.pem;
ssl_certificate_key /etc/nginx/conf.d/ssl_key/push.107421.xyz.key.pem;
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m;
ssl_session_tickets off;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
ssl_prefer_server_ciphers off;
location / {
access_log /var/log/nginx/access.log main;
client_max_body_size 5120m;
client_body_buffer_size 5120m;
client_body_timeout 6000s;
proxy_send_timeout 10000s;
proxy_read_timeout 10000s;
proxy_connect_timeout 600s;
proxy_max_temp_file_size 5120m;
proxy_request_buffering on;
proxy_buffering off;
proxy_buffer_size 4k;
proxy_buffers 4 12k;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://129.146.65.80:8800;
}
}

View File

@@ -0,0 +1,4 @@
安装方式 https://www.pushdeer.com/selfhosted.html
安装时间 2024年1月15日
服务器 Osaka-amd64-01