Advertisement
Guest User

reverse-proxy.conf (Reverse proxy - only relevant section)

a guest
Mar 22nd, 2024
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.38 KB | None | 0 0
  1. # https://nginx.org/en/docs/http/ngx_http_core_module.html#server
  2. server {
  3.     # https://nginx.org/en/docs/http/ngx_http_core_module.html#listen
  4.     listen 443 ssl http2;
  5.     listen [::]:443 ssl http2;
  6.     # https://nginx.org/en/docs/ngx_core_module.html#include
  7.     include /etc/nginx/conf.d/ssl.conf;
  8.     # https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_certificate
  9.     ssl_certificate /etc/nginx/certs/meinel.link.pem;
  10.     # https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_certificate_key
  11.     ssl_certificate_key /etc/nginx/certs/meinel.link.key;
  12.     # https://nginx.org/en/docs/http/ngx_http_core_module.html#server_name
  13.     server_name nextcloud.foo.tld;
  14.     # https://nginx.org/en/docs/ngx_core_module.html#include
  15.     include /etc/nginx/conf.d/common.conf;
  16.     # https://nginx.org/en/docs/http/ngx_http_core_module.html#location
  17.     location / {
  18.         # https://nginx.org/en/docs/ngx_core_module.html#include
  19.         include /etc/nginx/conf.d/common-location.conf;
  20.         # https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass
  21.         proxy_pass http://127.0.0.1:8082/;
  22.         # https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_redirect
  23.         proxy_redirect http://127.0.0.1:8082 https://nextcloud.foo.tld;
  24.     }
  25. }
  26.  
  27. # https://nginx.org/en/docs/ngx_core_module.html#include
  28. include /etc/nginx/conf.d/redirect.conf;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement