mirror of
https://github.com/RoboSats/robosats-web-host.git
synced 2025-07-17 16:23:19 +00:00
Include gitea
This commit is contained in:
@ -12,6 +12,15 @@ services:
|
||||
- /etc/letsencrypt/:/etc/nginx/ssl/:ro
|
||||
network_mode: host
|
||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
||||
gitea:
|
||||
image: docker.io/gitea/gitea:nightly
|
||||
container_name: gitea
|
||||
restart: always
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ./gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
tor:
|
||||
build: ./tor
|
||||
restart: always
|
||||
|
0
gitea/.gitkeep
Normal file
0
gitea/.gitkeep
Normal file
@ -28,6 +28,22 @@ server {
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name git.robosats.org;
|
||||
server_tokens off;
|
||||
|
||||
location /.well-known/acme-challenge {
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://git.robosats.org$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
@ -86,6 +102,27 @@ server {
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
http2 on;
|
||||
|
||||
server_name git.robosats.org;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/live/git.robosats.org/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/live/git.robosats.org/privkey.pem;
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
|
Reference in New Issue
Block a user