Created
May 15, 2023 12:43
-
-
Save neerajgupta2407/1e82a42e0735cbcc38ea7d662c9138ac to your computer and use it in GitHub Desktop.
Saleor Dashboard nginx config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server{ | |
server_name shop-api.algomock.in; | |
location / { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $host; | |
proxy_pass http://127.0.0.1:8000; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
} | |
listen 443 ssl; # managed by Certbot | |
ssl_certificate /etc/letsencrypt/live/shop-api.algomock.in/fullchain.pem; # managed by Certbot | |
ssl_certificate_key /etc/letsencrypt/live/shop-api.algomock.in/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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name shop-admin.algomock.in; | |
root /var/www/html/dashboard; | |
index index.html; | |
# Allow to refresh the page. | |
location / { | |
try_files $uri /index.html; | |
} | |
listen 443 ssl; # managed by Certbot | |
ssl_certificate /etc/letsencrypt/live/shop-admin.algomock.in/fullchain.pem; # managed by Certbot | |
ssl_certificate_key /etc/letsencrypt/live/shop-admin.algomock.in/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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment