Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created oep-nginx.conf #411

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions docs/oep-nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Here is a sample nginx conf file that goes into `/etc/nginx/sites-enabled` and will redirect
# http to https connections using a letsencrypt certificate. If you use a different certificate please change the path.
# Assumes your oep install is in /home/openethereumpool/open-ethereum-pool/ and you configured config.json and environment.js correctly


server {
listen 80;
listen [::]:80;
server_name yourpool.com;
return 301 https://$host$request_uri;
}

server {
listen 443 ssl;
server_name yourpool.com;
ssl_certificate /etc/letsencrypt/live/yourpool.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/yourpool.com/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;

root /home/openethereumpool/open-ethereum-pool/www/dist;
index index.html;

location / {
try_files $uri $uri/ =404;
}

location /api {
proxy_pass http://api;
}
}

upstream api {
server 127.0.0.1:8080;
}