Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #11 from wiz/rewrite-nginx-conf
Browse files Browse the repository at this point in the history
Rewrite nginx.conf
  • Loading branch information
sqrrm authored Dec 17, 2019
2 parents 597d4b0 + b300673 commit 46f9fa1
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 122 deletions.
62 changes: 62 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
worker_connections 768;
# multi_accept on;
}

http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;

include /etc/nginx/mime.types;
default_type application/octet-stream;

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

gzip on;
gzip_comp_level 5;
gzip_min_length 256;
gzip_proxied any;
gzip_vary on;

gzip_types application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy; # text/html is always compressed by gzip module

server {
listen 80;
listen [::]:80;
server_name explorer.bisq.network;

if ($host = explorer.bisq.network) {
return 301 https://$host$request_uri;
} # managed by Certbot

return 404; # managed by Certbot
}

server {
listen [::]:443 ssl http2; # managed by Certbot
listen 443 ssl http2; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/explorer.bisq.network/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/explorer.bisq.network/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

server_name explorer.bisq.network; # managed by Certbot

index index.html;
root /home/bisqweb/bisq-explorer/www;

location / {
expires 10s;
try_files $uri $uri/ =404;
}
}
}
122 changes: 0 additions & 122 deletions nginx.config

This file was deleted.

0 comments on commit 46f9fa1

Please sign in to comment.