Paste: /etc/nginx/sites-available/default
Author: | erg |
Mode: | objective-c |
Date: | Mon, 7 Nov 2022 22:41:14 |
Plain Text |
➜ sites-available cat default
server {
listen 80 default_server;
listen [::]:80 default_server;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
autoindex on;
root /home/sheeple/downloads.factorcode.org;
}
}
server {
if ($host = downloads.factorcode.org) {
return 301 https:
}
listen 80;
server_name downloads.factorcode.org;
location / {
autoindex on;
root /home/sheeple/downloads.factorcode.org;
}
}
server {
if ($host = builds.factorcode.org) {
return 301 https:
}
listen 80;
server_name builds.factorcode.org;
location / { proxy_pass http:
}
server {
if ($host = docs.factorcode.org) {
return 301 https:
}
listen 80;
server_name docs.factorcode.org;
location / { proxy_pass http:
}
server {
if ($host = gitweb.factorcode.org) {
return 301 https:
}
listen 80;
server_name gitweb.factorcode.org;
location / { proxy_pass http:
}
server {
if ($host = cgit.factorcode.org) {
return 301 https:
}
listen 80;
server_name cgit.factorcode.org;
location / { proxy_pass http:
}
server {
if ($host = irclogs.factorcode.org) {
return 301 https:
}
listen 80;
server_name irclogs.factorcode.org;
location / { proxy_pass http:
}
server {
if ($host = paste.factorcode.org) {
return 301 https:
}
listen 80;
server_name paste.factorcode.org;
location / { proxy_pass http:
}
server {
if ($host = planet.factorcode.org) {
return 301 https:
}
listen 80;
server_name planet.factorcode.org;
location / { proxy_pass http:
}
server {
if ($host = www.concatenative.org) {
return 301 https:
}
if ($host = concatenative.org) {
return 301 https:
}
listen 80;
server_name concatenative.org www.concatenative.org;
location / { proxy_pass http:
}
server {
if ($host = www.factorcode.org) {
return 301 https:
}
if ($host = factorcode.org) {
return 301 https:
}
listen 80;
server_name factorcode.org www.factorcode.org;
location / { proxy_pass http:
}
server {
server_name downloads.factorcode.org;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/builds.factorcode.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/builds.factorcode.org/privkey.pem; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
autoindex on;
root /home/sheeple/downloads.factorcode.org;
}
}
server {
server_name builds.factorcode.org;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/builds.factorcode.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/builds.factorcode.org/privkey.pem; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / { proxy_pass https:
}
server {
server_name docs.factorcode.org;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/builds.factorcode.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/builds.factorcode.org/privkey.pem; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / { proxy_pass https:
}
server {
server_name gitweb.factorcode.org;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/builds.factorcode.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/builds.factorcode.org/privkey.pem; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / { proxy_pass https:
}
server {
server_name cgit.factorcode.org;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/builds.factorcode.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/builds.factorcode.org/privkey.pem; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / { proxy_pass https:
}
server {
server_name irclogs.factorcode.org;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/builds.factorcode.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/builds.factorcode.org/privkey.pem; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / { proxy_pass https:
}
server {
server_name paste.factorcode.org;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/builds.factorcode.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/builds.factorcode.org/privkey.pem; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / { proxy_pass https:
}
server {
server_name planet.factorcode.org;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/builds.factorcode.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/builds.factorcode.org/privkey.pem; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / { proxy_pass https:
}
server {
server_name factorcode.org;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/builds.factorcode.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/builds.factorcode.org/privkey.pem; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / { proxy_pass https:
}
server {
server_name www.factorcode.org;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/builds.factorcode.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/builds.factorcode.org/privkey.pem; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / { proxy_pass https:
}
server {
server_name concatenative.org;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/builds.factorcode.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/builds.factorcode.org/privkey.pem; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / { proxy_pass https:
}
server {
server_name www.concatenative.org;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/builds.factorcode.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/builds.factorcode.org/privkey.pem; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / { proxy_pass https:
}
New Annotation