chore: bootstrap Atay Makhzan ops repo
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# Nginx reverse proxy template for Atay Makhzan / Gitea.
|
||||
# Replace DOMAIN and local port values if they differ.
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name ataymakhzan.com www.ataymakhzan.com;
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
root /var/www/html;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name ataymakhzan.com www.ataymakhzan.com;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/ataymakhzan.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/ataymakhzan.com/privkey.pem;
|
||||
|
||||
client_max_body_size 512M;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3001;
|
||||
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;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Port 443;
|
||||
|
||||
proxy_read_timeout 300s;
|
||||
proxy_send_timeout 300s;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user