Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
server {
server_name serverok.in www.serverok.in;
root /var/www/html/;
access_log /var/log/nginx/default_server.log;
autoindex on;
index index.php;
location ~ ^/.well-known/ {
allow all;
access_log off;
log_not_found off;
autoindex on;
#alias /var/www/html;
}
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8080;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/serverok.in/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/serverok.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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.