Created
August 11, 2021 12:40
-
-
Save enqtran/5c9695c1e50b853ccfa33f55d7614f1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name app.mydomain.com; | |
root /srv/app-name; | |
index index.html; | |
# Other config you desire (TLS, logging, etc)... | |
location / { | |
try_files $uri /index.html; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
server {
listen 80 default_server;
root /var/www/[Your repo name]/build;
server_name [your.domain.com] [your other domain if you want to];
index index.html index.htm;
location / {
}
}
location /files/ {
autoindex on;
root /var/www/[your repo name]/files;
}