Advertisement
Guest User

Untitled

a guest
Dec 28th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.92 KB | None | 0 0
  1. server {
  2.     listen 443 ssl http2;
  3.     listen [::]:443 ssl http2;
  4.  
  5.     server_name grocock.email www.grocock.email;
  6.  
  7.     include general/ssl.conf;
  8.     # include general/log.conf;
  9.  
  10.     # reverse proxy
  11.  
  12.     # location /blog/ {
  13.     #   proxy_pass http://127.0.0.1:8003;
  14.     # }
  15.  
  16.     location / {
  17.         proxy_pass http://127.0.0.1:8000;
  18.     }
  19. }
  20.  
  21. server {
  22.     listen 80;
  23.     listen [::]:80;
  24.  
  25.     server_name grocock.email;
  26.  
  27.     location / {
  28.         return 301 https://grocock.email$request_uri;
  29.     }
  30. }
  31.  
  32. server {
  33.     listen 443 ssl http2;
  34.     listen [::]:443 ssl http2;
  35.  
  36.     server_name api.grocock.email;
  37.  
  38.     include general/ssl.conf;
  39.     include general/log.conf;
  40.  
  41.     # reverse proxy
  42.     location / {
  43.         proxy_pass http://127.0.0.1:8001;
  44.     }
  45. }
  46.  
  47. server {
  48.     listen 443 ssl http2;
  49.     listen [::]:443 ssl http2;
  50.  
  51.     server_name assets.grocock.email;
  52.  
  53.     include general/ssl.conf;
  54.     include general/log.conf;
  55.  
  56.     # reverse proxy
  57.     location / {
  58.         proxy_pass http://127.0.0.1:8002;
  59.     }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement