pockethost/attic/nginx/force_ssl.conf
2022-09-18 20:15:57 -07:00

16 lines
278 B
Plaintext

server {
listen 80;
server_name example.org;
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name example.org;
location / {
proxy_pass http://example.org; #for demo purposes
}
}