Skip to content

Instantly share code, notes, and snippets.

View midoghranek's full-sized avatar
☑️

Muhammad Abu 'l-Gharaniq midoghranek

☑️
View GitHub Profile
@midoghranek
midoghranek / ubuntu-nextjs-nginx-config-file
Created November 21, 2022 07:48 — forked from oelbaga/01 - Setup Nextjs site on Ubuntu Server - Terminal commands
Setup NextJS app on Digital Ocean Ubuntu server Full Terminal Commands Step by Step
#nginx config file for Nextjs App
#place in /etc/nginx/sites-available/name_of_config_file
server {
listen 80;
server_name domainname.com;
gzip on;
gzip_proxied any;
gzip_types application/javascript application/x-javascript text/css text/javascript;
gzip_comp_level 5;
<script type='text/javascript'>
// BloggerJS v0.3.1
// Copyright (c) 2017-2018 Kenny Cruz
// Licensed under the MIT License
// Configuration -----------
var postsDatePrefix = false;
var accessOnly = false;
var useApiV3 = false;