docker-compose environment for the entire v.st system
https://v.st/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
933 B
36 lines
933 B
3 years ago
|
server {
|
||
2 years ago
|
server_name ${GITEA_HOSTNAME} ${GITEA_HOSTNAME}.${DOMAIN_NAME};
|
||
3 years ago
|
client_max_body_size 128m;
|
||
|
|
||
|
sendfile on;
|
||
|
tcp_nopush on;
|
||
|
tcp_nodelay on;
|
||
|
keepalive_timeout 65;
|
||
|
types_hash_max_size 2048;
|
||
|
|
||
|
gzip on;
|
||
|
gzip_disable "msie6";
|
||
|
|
||
|
proxy_read_timeout 1800s;
|
||
|
|
||
|
location / {
|
||
2 years ago
|
proxy_pass http://gitea:3000;
|
||
3 years ago
|
proxy_set_header Host $host;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
}
|
||
|
|
||
2 years ago
|
# force login with OIDC
|
||
|
location /user/login {
|
||
|
return 302 https://${GITEA_HOSTNAME}.${DOMAIN_NAME}/user/oauth2/keycloak;
|
||
|
}
|
||
3 years ago
|
|
||
|
listen 443 ssl;
|
||
|
ssl_certificate /etc/letsencrypt/live/${DOMAIN_NAME}/fullchain.pem;
|
||
|
ssl_certificate_key /etc/letsencrypt/live/${DOMAIN_NAME}/privkey.pem;
|
||
|
include /etc/nginx/includes/options-ssl-nginx.conf;
|
||
|
include /etc/nginx/includes/challenge.conf;
|
||
|
ssl_dhparam /etc/nginx/includes/ssl-dhparams.pem;
|
||
|
}
|