Skip to content

Instantly share code, notes, and snippets.

@mebaysan
Last active April 12, 2022 14:01
Show Gist options
  • Save mebaysan/7845c886d88439a43477b144375d5ca7 to your computer and use it in GitHub Desktop.
Save mebaysan/7845c886d88439a43477b144375d5ca7 to your computer and use it in GitHub Desktop.
An Nginx conf file to put in /etc/nginx/sites-available . We can bind a domain into a Docker container
server {
listen 80;
listen [::]:80;
server_name videomeet.app;
server_name_in_redirect off;
access_log /var/log/nginx/reverse-access.log;
error_log /var/log/nginx/reverse-error.log;
location / {
proxy_set_header Client-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8080;
}
}
# Create a symbolic link
# sudo ln -s /etc/nginx/sites-available/myproject /etc/nginx/sites-enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment