Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - # https://nginx.org/en/docs/http/ngx_http_core_module.html#server
 - server {
 - # https://nginx.org/en/docs/http/ngx_http_core_module.html#listen
 - listen 443 ssl http2;
 - listen [::]:443 ssl http2;
 - # https://nginx.org/en/docs/ngx_core_module.html#include
 - include /etc/nginx/conf.d/ssl.conf;
 - # https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_certificate
 - ssl_certificate /etc/nginx/certs/meinel.link.pem;
 - # https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_certificate_key
 - ssl_certificate_key /etc/nginx/certs/meinel.link.key;
 - # https://nginx.org/en/docs/http/ngx_http_core_module.html#server_name
 - server_name nextcloud.foo.tld;
 - # https://nginx.org/en/docs/ngx_core_module.html#include
 - include /etc/nginx/conf.d/common.conf;
 - # https://nginx.org/en/docs/http/ngx_http_core_module.html#location
 - location / {
 - # https://nginx.org/en/docs/ngx_core_module.html#include
 - include /etc/nginx/conf.d/common-location.conf;
 - # https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass
 - proxy_pass http://127.0.0.1:8082/;
 - # https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_redirect
 - proxy_redirect http://127.0.0.1:8082 https://nextcloud.foo.tld;
 - }
 - }
 - # https://nginx.org/en/docs/ngx_core_module.html#include
 - include /etc/nginx/conf.d/redirect.conf;
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment