KyatOuKyaw

Nginx conf

Sep 18th, 2024
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.66 KB | Software | 0 0
  1. server {
  2.     server_name  <mydomain>;
  3.  
  4.     #access_log  /var/log/nginx/host.access.log  main;
  5.  
  6.     location / {
  7.         root   /usr/share/nginx/html;
  8.         index  index.html index.htm;
  9.     }
  10.  
  11.     location /MYBOTTOKEN {
  12.         proxy_pass http://127.0.0.1:5000/1/;
  13.     }
  14.  
  15.     location = /50x.html {
  16.         root   /usr/share/nginx/html;
  17.     }
  18.  
  19.  
  20.  
  21.     listen 443 ssl; # managed by Certbot
  22.     ssl_certificate /fullchain.pem; # managed by Certbot
  23.     ssl_certificate_key /privkey.pem; # managed by Certbot
  24.     include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  25.     ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment