This repository has been archived by the owner on Nov 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from wiz/rewrite-nginx-conf
Rewrite nginx.conf
- Loading branch information
Showing
2 changed files
with
62 additions
and
122 deletions.
There are no files selected for viewing
This file contains 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
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; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.