mirror of
https://github.com/RoboSats/robosats-web-host.git
synced 2025-07-20 01:33:22 +00:00
Create @robosats.org access
This commit is contained in:
@ -10,6 +10,7 @@ services:
|
|||||||
- ./nginx/conf/:/etc/nginx/conf.d/:ro
|
- ./nginx/conf/:/etc/nginx/conf.d/:ro
|
||||||
- /var/www/certbot:/var/www/certbot/:ro
|
- /var/www/certbot:/var/www/certbot/:ro
|
||||||
- /etc/letsencrypt/:/etc/nginx/ssl/:ro
|
- /etc/letsencrypt/:/etc/nginx/ssl/:ro
|
||||||
|
- ./nostr:/nostr:ro
|
||||||
network_mode: host
|
network_mode: host
|
||||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
||||||
gitea:
|
gitea:
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
server_name robosats.org;
|
||||||
|
|
||||||
|
location /.well-known/acme-challenge {
|
||||||
|
root /var/www/certbot;
|
||||||
|
}
|
||||||
|
location / {
|
||||||
|
return 301 https://robosats.org$request_uri;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
@ -60,6 +74,26 @@ server {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
listen [::]:443 ssl;
|
||||||
|
http2 on;
|
||||||
|
|
||||||
|
server_name robosats.org;
|
||||||
|
|
||||||
|
ssl_certificate /etc/nginx/ssl/live/robosats.org/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/nginx/ssl/live/robosats.org/privkey.pem;
|
||||||
|
|
||||||
|
location /.well-known/nostr.json {
|
||||||
|
alias /nostr/nostr.json;
|
||||||
|
default_type application/json;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
return 301 https://learn.robosats.org$request_uri;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
listen [::]:443 ssl;
|
listen [::]:443 ssl;
|
||||||
|
Reference in New Issue
Block a user