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://$host$request_uri;
    }
    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://$host$request_uri;
    }
    listen 80;
    server_name builds.factorcode.org;
    location / { proxy_pass http://builds.factorcode.org:8080; }
}
server {
    if ($host = docs.factorcode.org) {
        return 301 https://$host$request_uri;
    }
    listen 80;
    server_name docs.factorcode.org;
    location / { proxy_pass http://docs.factorcode.org:8080; }
}
server {
    if ($host = gitweb.factorcode.org) {
        return 301 https://$host$request_uri;
    }
    listen 80;
    server_name gitweb.factorcode.org;
    location / { proxy_pass http://gitweb.factorcode.org:8080; }
}
server {
    if ($host = cgit.factorcode.org) {
        return 301 https://$host$request_uri;
    }
    listen 80;
    server_name cgit.factorcode.org;
    location / { proxy_pass http://cgit.factorcode.org:8080; }
}
server {
    if ($host = irclogs.factorcode.org) {
        return 301 https://$host$request_uri;
    }
    listen 80;
    server_name irclogs.factorcode.org;
    location / { proxy_pass http://irclogs.factorcode.org:8080; }
}
server {
    if ($host = paste.factorcode.org) {
        return 301 https://$host$request_uri;
    }
    listen 80;
    server_name paste.factorcode.org;
    location / { proxy_pass http://paste.factorcode.org:8080; }
}
server {
    if ($host = planet.factorcode.org) {
        return 301 https://$host$request_uri;
    }
    listen 80;
    server_name planet.factorcode.org;
    location / { proxy_pass http://planet.factorcode.org:8080; }
}
server {
    if ($host = www.concatenative.org) {
        return 301 https://$host$request_uri;
    }
    if ($host = concatenative.org) {
        return 301 https://$host$request_uri;
    }
    listen 80;
    server_name concatenative.org www.concatenative.org;
    location / { proxy_pass http://concatenative.org:8080; }
}

server {
    if ($host = www.factorcode.org) {
        return 301 https://$host$request_uri;
    }
    if ($host = factorcode.org) {
        return 301 https://$host$request_uri;
    }
    listen 80;
    server_name factorcode.org www.factorcode.org;
    location / { proxy_pass http://factorcode.org:8080; }
}


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://builds.factorcode.org:8431; }
}

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://docs.factorcode.org:8431; }
}

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://gitweb.factorcode.org:8431; }
}

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://cgit.factorcode.org:8431; }
}

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://irclogs.factorcode.org:8431; }
}

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://paste.factorcode.org:8431; }
}

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://planet.factorcode.org:8431; }
}

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://factorcode.org:8431; }
}

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://www.factorcode.org:8431; }
}

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://concatenative.org:8431; }
}
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://www.concatenative.org:8431; }
}

New Annotation

Summary:
Author:
Mode:
Body: