Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Interactive sandbox for checking nginx configs made with codesandbox.io

License

NotificationsYou must be signed in to change notification settings

tldr-devops/codesandbox-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#StandWithBelarusVoices From BelarusStand With Ukraine

Try in Codesandbox.io

Welcome to the interactive sandbox featuring theNginx Web Server, where you can test your Nginx configurations.

To begin, clone this repository to yourcodesandbox account by clicking "Create Branch" or "Fork" in the top right corner. This is necessary to access the preview window, open the terminal, and make changes to the code.

Note: If you do not clone the repository, you will not be able to perform any of the aforementioned actions.

Another note: you should reload preview window after updating html content.

Codesandbox providesCloud Sandboxes with the following specifications:

  • 2 vCPUs
  • 2 GB of RAM
  • 6 GB of storage

Your project will start inside the rootlessdocker container, where you can modify any configuration and execute shell scripts. For your convenience, I have prepared somescripts for you:

  • Run nginx server:
    This script executes/docker-entrypoint.sh and starts Nginx in the foreground. Codesandbox should open the preview frame with the URL using port 3000. Make sure to use the same HTTP port (3000) in your configurations within this sandbox.

  • Tail nginx access log:
    Execute this command to view the contents of/var/log/nginx/access.log. By default, all access logs are stored here unless you override the default configuration.

  • Tail nginx error log:
    Execute this command to view the contents of/var/log/nginx/error.log. By default, all error logs are stored here unless you override the default configuration.

  • Reload nginx on config changes:
    This command validates and reloads the Nginx configurations automatically whenever changes are made.

  • Clean nginx access and error logs:
    Execute this command to clean all log files located within the/var/log/nginx directory.

Feel free to explore and experiment with your Nginx configurations in this interactive sandbox. Happy testing!

You can also find useful example of nginx configurationhere. Also you can find a collection of resources covering Nginx, Nginx + Lua, OpenResty and Tenginehere.

Time track:

About the Author

Hello, everyone! My name is Filipp, and I have been working with high load distribution systems and services, security, monitoring, continuous deployment and release management (DevOps domain) since 2012.

One of my passions is developing DevOps solutions and contributing to the open-source community. By sharing my knowledge and experiences, I strive to save time for both myself and others while fostering a culture of collaboration and learning.

I had to leave my home country, Belarus, due to my participation inprotests against the oppressive regime of dictator Lukashenko, who maintains a close affiliation with Putin. Since then, I'm trying to build my life from zero in other countries.

If you are seeking a skilled DevOps lead or architect to enhance your project, I invite you to connect with me onLinkedIn or explore my valuable contributions onGitHub. Let's collaborate and create some cool solutions together :)

How You Can Support My Projects

There are a couple of ways you can support my projects:

  • Sending Pull Requests (PRs):
    If you come across any improvements or suggestions for my configurations or texts, feel free to send me Pull Requests (PRs) with your proposed changes. I appreciate your contributions <3

  • Making Donations:
    If you find my projects valuable and would like to support them financially, you can make a donation. Your contributions will go towards further development, maintenance, and improvement of the projects. Your support is greatly appreciated and helps to ensure the continued success of the projects.

Thank you for considering supporting my work. Your involvement and contributions make a significant difference in the growth and success of my projects.

About

Interactive sandbox for checking nginx configs made with codesandbox.io

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

    Packages

    No packages published

    [8]ページ先頭

    ©2009-2025 Movatter.jp