Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes 1;
- events {
- worker_connections 1024;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- server {
- listen 80;
- server_name localhost:8080;
- return 301 https://$host$request_uri;
- }
- server {
- listen 443 ssl;
- server_name localhost:8080;
- ssl_certificate C:/nginx/conf/carpagetazeglove.pem;
- ssl_certificate_key C:/nginx/conf/carpagetazeglove.key;
- #Turns on OCSP stapling
- #ssl_stapling on;
- #ssl_stapling_verify on;
- # Uncomment this line only after testing in browsers,
- # as it commits you to continuing to serve your site over HTTPS
- # in future
- #add_header Strict-Transport-Security "max-age=31536000";
- #access_log syslog:server=logserverip:514,facility=local7,tag=nginx_access,severity=info combined;
- #error_log syslog:server=logserverip:514,facility=local7,tag=nginx_error,severity=error;
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto https;
- proxy_set_header X-Forwarded-Host $http_host;
- proxy_set_header Host $http_host;
- proxy_max_temp_file_size 0;
- proxy_pass http://127.0.0.1:8080;
- proxy_redirect http:// https://;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement