Ehsan Ullah
IT Analyst
Home
New *
Home
Experience
Current Projects
Portfolio
Education
Contact Me
About Me
Time Line
Add Public IP to NGINX Conf at run time
Use the following code to add dynamic IP on the NGINX configuration file
ipaddr=$(curl -s http://whatismyip.akamai.com/);
#sed -ri "s/server_name.*\$/server_name gitlab.server.my $ipaddr/" /etc/nginx/conf.d/gitlab_.conf
Newer Post
Older Post
Home