Skip to content

Instantly share code, notes, and snippets.

@DevinNorgarb
Created December 19, 2022 20:41
Show Gist options
  • Save DevinNorgarb/39fa5bffed7b2d613fae23154843d4e9 to your computer and use it in GitHub Desktop.
Save DevinNorgarb/39fa5bffed7b2d613fae23154843d4e9 to your computer and use it in GitHub Desktop.
server {
# The listen directive serves content based on the port defined
listen 80; # For IPv4 addresses
listen [::]:80; # For IPv6 addresses
# Replace the below if you have a domain name pointed to the server
server_name your-domain.com;
access_log /var/log/nginx/reverse-access.log;
error_log /var/log/nginx/reverse-error.log;
location / {
# Specify the proxied server's address
proxy_pass http://127.0.0.1:8000>;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment