95 lines
2.3 KiB
Plaintext
95 lines
2.3 KiB
Plaintext
server {
|
|
listen 80;
|
|
server_name riabenkyi.nl www.riabenkyi.nl;
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
root /var/www/certbot;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name riabenkyi.nl www.riabenkyi.nl;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/riabenkyi.nl/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/riabenkyi.nl/privkey.pem;
|
|
|
|
root /var/www/html;
|
|
index index.php index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_pass php:9000;
|
|
fastcgi_index index.php;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
include fastcgi_params;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name api.riabenkyi.nl;
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
root /var/www/certbot;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name api.riabenkyi.nl;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/riabenkyi.nl/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/riabenkyi.nl/privkey.pem;
|
|
|
|
location / {
|
|
proxy_pass http://api:8000;
|
|
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;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name git.riabenkyi.nl;
|
|
|
|
location / {
|
|
proxy_pass http://gitea:3000;
|
|
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;
|
|
|
|
client_max_body_size 512M;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name git.riabenkyi.nl;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/riabenkyi.nl/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/riabenkyi.nl/privkey.pem;
|
|
|
|
location / {
|
|
proxy_pass http://gitea:3000;
|
|
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;
|
|
client_max_body_size 512M;
|
|
}
|
|
} |