Last active
April 27, 2019 13:37
-
-
Save dmytrostriletskyi/c9d24b5ae1517410956f9a35282696b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
} | |
http { | |
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
server { | |
listen 80 default_server; | |
server_name_in_redirect on; | |
return 301 https://linters.io$request_uri; | |
location ^~ /.well-known { | |
allow all; | |
alias /var/lib/letsencrypt/.well-known/; | |
default_type "text/plain"; | |
try_files $uri =404; | |
} | |
} | |
server { | |
listen 443 ssl; | |
server_name linters.io; | |
ssl_certificate /etc/letsencrypt/live/linters.io/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/linters.io/privkey.pem; | |
include /etc/letsencrypt/options-ssl-nginx.conf; | |
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; | |
root /var/www/linters.io/scripts; | |
location / { | |
return 302 $scheme://github.com/dmytrostriletskyi/linters.io; | |
} | |
location /pytest-inits { | |
default_type text/plain; | |
try_files $uri $uri/ /pytest-inits.txt; | |
} | |
location /isort-diff { | |
default_type text/plain; | |
try_files $uri $uri/ /isort-diff.txt; | |
} | |
location /sort-requirements { | |
default_type text/plain; | |
try_files $uri $uri/ /sort-requirements.txt; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment