Skip to content

From this new update css blocked over HTTPS #1239

Answered by AtizaD
AtizaD asked this question in Q&A
Discussion options

You must be logged in to vote

server {
server_name mydomain;

location / {
    proxy_pass http://localhost:8080;
    proxy_set_header Host $host;
    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 $scheme;
}

listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/mydomain/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/mydomain/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}

server {
if ($host = mydomain) {
return 301 https://$host$request_uri;
} # …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Frooodle
Comment options

@AtizaD
Comment options

@Frooodle
Comment options

@AtizaD
Comment options

Answer selected by Frooodle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants