Skip to content

Commit

Permalink
Merge pull request #9 from runtimeverification/develop
Browse files Browse the repository at this point in the history
title
  • Loading branch information
asavienko authored Oct 31, 2023
2 parents 7f626ec + 9ef4ec6 commit 7ae280f
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
9 changes: 9 additions & 0 deletions configs/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
http {
access_log off;
include /etc/nginx/conf.d/*.conf;
server_names_hash_bucket_size 128;
}

events {

}
8 changes: 8 additions & 0 deletions configs/nginx/no-ssl-template.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
server {
listen 80;
server_name $HOST;

location /.well-known/acme-challenge/ {
alias /var/www/$HOST/.well-known/acme-challenge/;
}
}
35 changes: 35 additions & 0 deletions configs/nginx/ssl-template.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
server {
listen 80;
server_name $HOST;

location /.well-known/acme-challenge/ {
alias /var/www/$HOST/.well-known/acme-challenge/;
}

rewrite ^(.*) https://$server_name$1 permanent;
}

server {
listen 443 ssl;
server_name $HOST;
access_log off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
client_max_body_size 300m;
ssl_certificate /etc/nginx/ssl/$HOST/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/$HOST/key.pem;
ssl_trusted_certificate /etc/nginx/ssl/$HOST/chain.pem;

location / {
proxy_pass http://0.0.0.0:$FRONTEND_PORT;
}
location ~ ^/oauth/github/callback/to/(pr-.*)?(.*)$ {
return 302 $scheme://$HOST/oauth/github/callback?$args;
}
location ~ ^/(graphql|api|oauth)(.*?)$ {
proxy_pass http://0.0.0.0:$BACKEND_PORT/$1$2$is_args$args;
}
}

0 comments on commit 7ae280f

Please sign in to comment.