Skip to content

Instantly share code, notes, and snippets.

@taneliang
Created October 26, 2019 08:20
Show Gist options
  • Save taneliang/3c6fdbb1a993fd24afcaafeb9a750f0c to your computer and use it in GitHub Desktop.
Save taneliang/3c6fdbb1a993fd24afcaafeb9a750f0c to your computer and use it in GitHub Desktop.
NUSMods API Nginx Config
server {
listen 80;
server_name _;
root /home/<USERNAME>/api.nusmods.com/;
add_header "Access-Control-Allow-Origin" "*" always;
autoindex on;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment