JSFiddle - React, Tailwind, and code Playground

by Artem

JavaScript

nginx.conf

worker_processes  1;
error_log  /var/log/nginx/error.log warn;
pid        /tmp/nginx.pid;

events {
    worker_connections  1024;
}

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;

    keepalive_timeout  65;

    include /etc/nginx/conf.d/*.conf;
    
    
    
    
    
    
    
default.conf
server {
  listen 8080;

  gzip on;
  gzip_types text/plain text/css text/xml application/javascript text/javascript application/x-javascript application/xml font/woff font/woff2 application/vnd.ms-fontobject font/ttf font/collection font/otf;

  root /usr/share/nginx/html;

  location / {
    try_files $uri $uri/ /packet/core/index.html;
  }
}