## 🔍 Motivation & Context Having an SSH cloning method allows users to securely bypass the MFA of Gitea. Adding a Gitea runner allows CI/CD pipelines. ## 🔖 Related Issue Closes #4, and #10. ## ✨ Changes - Added SSH port forwarding for `nginx` instance, on 2222. - Added provisioning and deployment or one Gitea runner. - Automatically register runner during deployment. Reviewed-on: https://code.maximhutz.com/Infrastructure/Codebase/pulls/18 Co-authored-by: Max <git@maximhutz.me> Co-committed-by: Max <git@maximhutz.me>
31 lines
839 B
Plaintext
31 lines
839 B
Plaintext
server {
|
|
server_name code.maximhutz.com;
|
|
listen 443 ssl;
|
|
|
|
location / {
|
|
client_max_body_size 512M;
|
|
proxy_pass http://${CODEBASE_IP}/;
|
|
proxy_set_header Connection $http_connection;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
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;
|
|
}
|
|
|
|
ssl_certificate /etc/letsencrypt/live/maximhutz.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/maximhutz.com/privkey.pem;
|
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
|
}
|
|
|
|
server {
|
|
server_name code.maximhutz.com;
|
|
listen 80;
|
|
|
|
if ($host = code.maximhutz.com) {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
return 404;
|
|
} |