2024-10-18, 05:39 AM
(This post was last modified: 2024-10-18, 03:12 PM by TheDreadPirate. Edited 3 times in total.)
Okay, it's seems that now it's working locally but not remotely with my own address.
And yes, I'm using a reverse proxy
I'm not using any kind of vpn or pihole
And yes, I'm using a reverse proxy
Code:
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
# Logging settings
access_log logs/access.log;
error_log logs/error.log;
# Enable Gzip compression
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
# SSL settings
ssl_certificate C:/nginx/cert/cert.pem; # Update with your SSL certificate path
ssl_certificate_key C:/nginx/cert/private.pem; # Update with your SSL key path
ssl_trusted_certificate C:/nginx/cert/fullchain.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Adjust protocols as needed
ssl_ciphers HIGH:!aNULL:!MD5;
# Server block for HTTPS
server {
listen 443 ssl;
server_name supahfox.********.com; # Replace with your domain
# Location block to handle all requests
location / {
# Reverse proxy configuration
proxy_pass http://localhost:8096; # Replace with your backend server address
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;
}
}
# Server block for HTTP to redirect to HTTPS
server {
listen 80;
server_name supahfox.********; # Replace with your domain
return 301 https://$host$request_uri;
}
}
I'm not using any kind of vpn or pihole