daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.   listen 80;
  3.   server_name _;
  4.   rewrite ^ https://$host$request_uri? permanent;
  5. }
  6. server {
  7.   listen  443;
  8.   server_name 130.74.96.91;
  9.   ssl on;
  10.   ssl_certificate //etc/ssl/certs/nginx-selfsigned.crt;
  11.   ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
  12.   ssl_prefer_server_ciphers       on;
  13.  
  14.   location / {
  15.         proxy_pass http://localhost:8000;
  16.         proxy_set_header Host $host;
  17.         proxy_set_header X-Real-IP $remote_addr;
  18.     }
  19.    location /static {
  20.         alias  /home/rony/baitbuster_server/static/;
  21.     }
  22. }
RAW Paste Data
Top