-
-
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
This file contains hidden or 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 { | |
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