Added initial gitea config
This commit is contained in:
parent
d13573f87d
commit
0a6ffbf67d
4 changed files with 111 additions and 7 deletions
|
|
@ -14,40 +14,46 @@ HTTPS_PORT=443
|
|||
|
||||
# =====PER-SERVICE CONFIGURATION=====
|
||||
# Domain name: domain name that points to the instance
|
||||
# Host name: basically the argument to proxy_pass
|
||||
# Hostname: basically the argument to proxy_pass
|
||||
|
||||
## Firefly III
|
||||
### Domain name
|
||||
FIREFLY_DOMAIN=
|
||||
### Host name
|
||||
### Hostname
|
||||
FIREFLY_HOST=firefly_app_1
|
||||
|
||||
## Koel
|
||||
### Domain name
|
||||
KOEL_DOMAIN=
|
||||
### Host name
|
||||
### Hostname
|
||||
KOEL_HOST=koel_app_1
|
||||
|
||||
## Miniflux
|
||||
### Domain name
|
||||
MINIFLUX_DOMAIN=
|
||||
### Host name
|
||||
### Hostname
|
||||
MINIFLUX_HOST=miniflux_app_1
|
||||
|
||||
## Monica
|
||||
### Domain name
|
||||
MONICA_DOMAIN=
|
||||
### Host name
|
||||
### Hostname
|
||||
MONICA_HOST=monica_app_1
|
||||
|
||||
## Nextcloud
|
||||
### Domain name
|
||||
NEXTCLOUD_DOMAIN=
|
||||
### Host name
|
||||
### Hostname
|
||||
NEXTCLOUD_HOST=nextcloud_app_1
|
||||
|
||||
## Portainer
|
||||
### Domain name
|
||||
PORTAINER_DOMAIN=
|
||||
### Host name
|
||||
### Hostname
|
||||
PORTAINER_HOST=portainer_app_1
|
||||
|
||||
## Gitea
|
||||
### Domain name
|
||||
GITEA_DOMAIN=
|
||||
### Hostname
|
||||
GITEA_HOST=gitea_app_1
|
||||
|
|
|
|||
23
nginx/sites-available/gitea.conf.template
Normal file
23
nginx/sites-available/gitea.conf.template
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
server {
|
||||
# SSL Key locations
|
||||
ssl_certificate /etc/letsencrypt/live/${GITEA_DOMAIN}/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/${GITEA_DOMAIN}/privkey.pem;
|
||||
|
||||
listen ${HTTPS_PORT} ssl;
|
||||
listen [::]:${HTTPS_PORT} ssl;
|
||||
server_name ${GITEA_DOMAIN};
|
||||
|
||||
location / {
|
||||
resolver 127.0.0.11;
|
||||
proxy_pass http://#{GITEA_HOST}:3000/;
|
||||
|
||||
# Static content caching
|
||||
location ~* \.(?:jpg|jpeg|png|gif|ico|css|js|ttf)$ {
|
||||
expires 1h;
|
||||
add_header Cache-Control public;
|
||||
|
||||
proxy_pass http://${GITEA_HOST}:3000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in a new issue